Class ComponentSpaceWritable
- java.lang.Object
-
- io.vertigo.core.node.component.loader.ComponentSpaceWritable
-
- All Implemented Interfaces:
Activeable
,ComponentSpace
,Container
public final class ComponentSpaceWritable extends Object implements ComponentSpace, Activeable
Centralisation des accès aux composants et aux plugins. Les composants et leur initializers sont instanciés par injection - des paramètres déclarés sur le scope composant. - des autres composants Les plugins sont instanciés par injection - des paramètres déclarés sur le scope plugin. - des autres composants Donc un plugin ne peut pas être injecté dans un plugin, il ne peut être injecté que dans LE composant pour lequel il est prévu. En revanche les composants (à ne pas réaliser de dépendances cycliques) peuvent être injecter dans les composants, les plugins et les initializers.- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description ComponentSpaceWritable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String id)
Returns true if this container contains the specified componentSet<String>
keySet()
Returns the list of the ids of the components managed in this container.<C> C
resolve(String id, Class<C> componentClass)
Resolve a component from its id and class.void
start()
Called after the component has been created and filled by injection (for the components built by configuration).void
stop()
Called before the component is stopped.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertigo.core.node.component.ComponentSpace
resolve
-
-
-
-
Method Detail
-
start
public void start()
Called after the component has been created and filled by injection (for the components built by configuration).- Specified by:
start
in interfaceActiveable
-
stop
public void stop()
Called before the component is stopped.- Specified by:
stop
in interfaceActiveable
-
contains
public boolean contains(String id)
Returns true if this container contains the specified component
-
resolve
public <C> C resolve(String id, Class<C> componentClass)
Resolve a component from its id and class.
-
-