Class ComponentSpaceWritable
java.lang.Object
io.vertigo.core.node.component.loader.ComponentSpaceWritable
- All Implemented Interfaces:
Activeable,ComponentSpace,Container
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this container contains the specified componentkeySet()Returns the list of the ids of the components managed in this container.<C> CResolve a component from its id and class.voidstart()Initializes and activates the component.voidstop()Deactivates and prepares the component for destruction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.node.component.ComponentSpace
resolve
-
Constructor Details
-
ComponentSpaceWritable
public ComponentSpaceWritable()
-
-
Method Details
-
start
public void start()Initializes and activates the component. This method is called after the component has been created and fully initialized, typically after dependency injection for components built via configuration. Implementations should perform any necessary setup or resource allocation to prepare the component for use.- Specified by:
startin interfaceActiveable
-
stop
public void stop()Deactivates and prepares the component for destruction. This method is called before the component is stopped or destroyed. Implementations should release resources, terminate processes, or perform cleanup to ensure a graceful shutdown.- Specified by:
stopin interfaceActiveable
-
contains
Returns true if this container contains the specified component -
resolve
Resolve a component from its id and class. -
keySet
Returns the list of the ids of the components managed in this container.
-