Package org.n52.janmayen.component
Interface ComponentFactory<K,C extends Component<K>>
- Type Parameters:
K- the key typeC- the component type
- All Superinterfaces:
Keyed<K>
- All Known Subinterfaces:
SingleTypeComponentFactory<K,C>
Interface for
Component factories.- Since:
- 1.0.0
-
Method Details
-
has
Checks if this factory supports the suppliedkey.- Parameters:
key- the key- Returns:
- if this factory supports the key.
-
createAll
Creates allComponents supported by this factory.- Returns:
- the components
-
getKeys
Get all keys that are supported by this factory. -
create
Creates theComponentassociated with the suppliedkey. Whether this method will always return the same instance or a fresh instance for each call is implementation dependent.- Parameters:
key- the key- Returns:
- the
Component
-