P - the parent class to which this store is limited topublic interface SingletonStore<P>
| Modifier and Type | Method and Description |
|---|---|
<C extends P> |
getSingleton(Class<C> clazz)
Returns the singleton of the given type, creating it if it hasn't yet been created.
|
Collection<P> |
retrieveAllOfType()
Returns all existing singletons of this store's type.
|
<C extends P> |
retrieveAllOfType(Class<C> clazz)
Returns all existing singletons of the given type.
|
<C extends P> C getSingleton(Class<C> clazz)
C - type of the singletonclazz - the class to get the singleton forCCollection<P> retrieveAllOfType()
P<C extends P> Collection<C> retrieveAllOfType(Class<C> clazz)
C - class typeclazz - the type to get singletons forCCopyright © 2017. All rights reserved.