Class DIReactor
java.lang.Object
io.vertigo.core.node.component.di.DIReactor
Reactor.
- adds components in any order with their id, their class
- adds ids for components that are already existing.
- then 'proceed' and you obtain an ORDERED list of components, taking account of their dependencies.
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponent(String id, Class<?> implClass) Adds a componentaddComponent(String id, Class<?> implClass, Set<String> params) Adds a componentAdds a component identified by its ID.proceed()Process the 'digital' reaction in a way to obtain an ordered list of components, taking account of their dependencies.
-
Constructor Details
-
DIReactor
public DIReactor()
-
-
Method Details
-
addComponent
Adds a component- Parameters:
id- ID f the componentimplClass- Impl class of the component- Returns:
- this reactor
-
addComponent
Adds a component- Parameters:
id- ID f the componentimplClass- Impl class of the componentparams- List of ID of all local params - which will be automatically injected-- Returns:
- this reactor
-
addParent
Adds a component identified by its ID. This component is ready to be injected in other components (and it does not need to be resolved).- Parameters:
id- ID of the component- Returns:
- this reactor
-
proceed
Process the 'digital' reaction in a way to obtain an ordered list of components, taking account of their dependencies.- Returns:
- Ordered list of comoponent's Ids.
-