public interface ComponentLoader
ComponentLoader
takes care of loading Component
s for a Container
.
The order in which Component
s are started and stopped, is the responsibility of an implementation of this interface.
Stopping will be done in the reverse order of the order they were loaded.
Modifier and Type | Method and Description |
---|---|
java.util.Set<Component> |
load()
|
java.util.Set<Component> load()
Set
with the Component
s to load into a Container
instance.
If the order in which the Component
s are loaded, started and stopped is crucial, consider using a LinkedHashSet
. All Container
s will use the load order as the order to start and the reverse
of that order to stop them.
Set
with the Component
s to load into a Container
instance.