public final class ServiceLoaderComponentLoader extends java.lang.Object implements ComponentLoader
ComponentLoaderimplementation that uses a
ServiceLoaderinternally to load
To use this class, you need to add the file
META-INF/services/org.macroing.cit.ioc.component.Component to your JAR-file. In this file, type, on separate lines, the fully qualified class names of the
Component implementations you wish to load.
For more information, take a look at the Javadocs for the
ServiceLoader class in the official Java APIs.
|Constructor and Description|
Constructs a new
public java.util.Set<Component> load()
Components to load into a
If the order in which the
Components are loaded, started and stopped is crucial, consider using a
Containers will use the load order as the order to start and the reverse
of that order to stop them.