R
- A type that implements FacadeReadypublic interface Facade<R extends FacadeReady<R>>
Modifier and Type | Method and Description |
---|---|
<E extends R> |
exists(Class<E> clazz,
Object... keyPart)
Check if the component has already been created and stored.
|
<E extends R> |
exists(UniqueKey<E> uniqueKey)
Check if the component has already been created and stored.
|
<E extends R> |
register(E readyObject,
Object... keyPart)
Register a new ready object component.
|
<E extends R> |
register(UniqueKey<E> uniqueKey,
E readyObject)
Register a new ready object component.
|
<E extends R> |
retrieve(Class<E> clazz,
Object... keyPart)
Retrieve a ready object component.
|
<E extends R> |
retrieve(UniqueKey<E> uniqueKey)
Retrieve a ready object component.
|
<E extends R> |
retrieveFilter(UniqueKey<E> uniqueKey)
Return the list of component that have the same classField than the given key.
|
<E extends R> |
retrieveMany(Class<E> clazz,
Object... keyPart)
Retrieve a ready object component.
|
<E extends R> |
retrieveMany(UniqueKey<E> uniqueKey)
Retrieve a ready object component.
|
<E extends R> |
unregister(E readyObject,
Object... keyPart)
Unregister a new ready object component.
|
<E extends R> |
unregister(UniqueKey<E> uniqueKey)
Unregister a new ready object component.
|
<E extends R> void register(UniqueKey<E> uniqueKey, E readyObject)
E
- the type of the ready object useduniqueKey
- the unique key for the component to getreadyObject
- the component to register<E extends R> void register(E readyObject, Object... keyPart)
E
- the type of the ready object usedreadyObject
- the component to registerkeyPart
- the unique key for multiton FacadeReady element, could be omitted for singleton<E extends R> void unregister(UniqueKey<E> uniqueKey)
E
- the type of the ready object useduniqueKey
- the unique key for the component to get<E extends R> void unregister(E readyObject, Object... keyPart)
E
- the type of the ready object usedreadyObject
- the component to unregisterkeyPart
- the unique key for multiton FacadeReady element, could be omitted for singleton<E extends R> boolean exists(UniqueKey<E> uniqueKey)
E
- The type of the object registered by this ClassKeyuniqueKey
- the unique key for the component to get<E extends R> boolean exists(Class<E> clazz, Object... keyPart)
E
- The type of the object registered by this ClassKeyclazz
- the component class to checkkeyPart
- the unique key for multiton FacadeReady element, could be omitted for singleton<E extends R> E retrieve(UniqueKey<E> uniqueKey)
E
- the type of the ready object to retrieveuniqueKey
- the unique key for the component to get<E extends R> E retrieve(Class<E> clazz, Object... keyPart)
E
- the type of the ready object to retrieveclazz
- the component classkeyPart
- the unique key for multiton FacadeReady element, could be omitted for singleton<E extends R> List<E> retrieveMany(UniqueKey<E> uniqueKey)
E
- the type of the ready object to retrieveuniqueKey
- the unique key for the component to get<E extends R> List<E> retrieveMany(Class<E> clazz, Object... keyPart)
E
- the type of the ready object to retrieveclazz
- the component classkeyPart
- the unique key for multiton FacadeReady element, could be omitted for singleton<E extends R> List<E> retrieveFilter(UniqueKey<E> uniqueKey)
E
- The type of the object registered by this ClassKeyuniqueKey
- the key used to retrieve all component matching its classFieldCopyright © 2011–2016 JRebirth OSS. All rights reserved.