All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.otto.edison.status.controller.ExternalDependencies Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package de.otto.edison.status.controller;

import de.otto.edison.annotations.Beta;
import de.otto.edison.status.domain.ExternalDependency;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

import static java.util.Collections.emptyList;

/**
 * A component used to access all available ExternalDependency objects.
 * 

* This class is mostly used for testing purposes, as it helps to mock the * list of ExternalDependency objects. *

* * @since 1.1.0 */ @Beta @Component class ExternalDependencies { @Autowired(required = false) private List dependencies; public List getDependencies() { return dependencies != null ? dependencies : emptyList(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy