Package io.vertigo.core.node.component
Interface Container
-
- All Known Subinterfaces:
ComponentSpace
- All Known Implementing Classes:
ComponentSpaceWritable
public interface ContainerThe Container interface defines a universal container for the components. Each component is identified by an id.- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(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.<T> Tresolve(String id, Class<T> componentClass)Resolve a component from its id and class.
-
-
-
Method Detail
-
contains
boolean contains(String id)
Returns true if this container contains the specified component- Parameters:
id- Id of the component- Returns:
- true if the component is already registered.
-
resolve
<T> T resolve(String id, Class<T> componentClass)
Resolve a component from its id and class.- Parameters:
id- Id of the componentcomponentClass- Type of the component- Returns:
- Component
-
-