K - the component keyC - the component typepublic interface SingleTypeComponentFactory<K,C extends Component<K>> extends ComponentFactory<K,C>
ComponentFactory that supports only a single key.| Modifier and Type | Method and Description |
|---|---|
C |
create()
Creates the single
Component supported by this factory. |
default C |
create(K key)
Creates the
Component associated with the supplied key. |
default Set<C> |
createAll()
Creates a singleton set of the
Component supported by this factory. |
K |
getKey()
Gets the single key supported by this factory.
|
default Set<K> |
getKeys()
Creates a singleton set of the key supported by this factory.
|
default boolean |
has(K key)
Checks if the
key is the key supported by this factory. |
C create()
Component supported by this factory. Whether this method will always return the same
instance or a fresh instance for each call is implementation dependent.default C create(K key)
Component associated with the supplied key.
Whether this method will always return the same instance or a fresh
instance for each call is implementation dependent.create in interface ComponentFactory<K,C extends Component<K>>key - the keyComponentIllegalArgumentException - if key does not equal the key of this factory.default Set<C> createAll()
Component supported by this factory.K getKey()
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.