Package io.vertigo.core.node.component
Interface Container
- All Known Subinterfaces:
ComponentSpace
- All Known Implementing Classes:
ComponentSpaceWritable
public interface Container
The Container interface defines a universal container for the components.
Each component is identified by an id.
- Author:
- pchretien
-
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.<T> TResolve a component from its id and class.
-
Method Details
-
contains
Returns true if this container contains the specified component- Parameters:
id- Id of the component- Returns:
- true if the component is already registered.
-
resolve
Resolve a component from its id and class.- Parameters:
id- Id of the componentcomponentClass- Type of the component- Returns:
- Component
-
keySet
Returns the list of the ids of the components managed in this container.- Returns:
- list of ids
-