R
- the class type of the subclasspublic abstract class AbstractReady<R extends FacadeReady<R>> extends Object implements FacadeReady<R>
Constructor and Description |
---|
AbstractReady() |
Modifier and Type | Method and Description |
---|---|
<C extends Command> |
getCommand(Class<C> clazz,
Object... keyPart)
Return the command singleton or part of multiton.
|
<C extends Command> |
getCommand(UniqueKey<C> commandKey)
Return the command singleton or part of multiton according to
UniqueKey . |
<C extends Command> |
getCommands(Class<C> clazz,
Object... keyPart)
Return the list of command singleton or part of multiton.
|
<C extends Command> |
getCommands(UniqueKey<C> commandKey)
Return the list of command singleton or part of multiton according to
UniqueKey . |
Object |
getFirstKeyPart()
Return the first key part of the
MultitonKey or the component class type for UniqueKey . |
<KP> KP |
getKeyPart(Class<KP> keyPartClass)
Return the first object assignable from te given class.
|
List<Object> |
getListKeyPart()
Return the list of key parts (considered as model objects).
|
<M extends Model> |
getModel(Class<M> clazz,
Object... keyPart)
Return the model singleton or part of multiton according to key parts provided.
|
<M extends Model> |
getModel(UniqueKey<M> modelKey)
Return the model singleton or part of multiton according to
UniqueKey . |
<M extends Model> |
getModels(Class<M> clazz,
Object... keyPart)
Return the list of model singleton or part of multiton according to key parts provided.
|
<M extends Model> |
getModels(UniqueKey<M> modelKey)
Return the list of model singleton or part of multiton according to
UniqueKey . |
Object |
getSecondKeyPart()
Return the second key part of the
MultitonKey if any or null. |
<S extends Service> |
getService(Class<S> clazz,
Object... keyPart)
Return the service singleton or part of multiton.
|
<S extends Service> |
getService(UniqueKey<S> serviceKey)
Return the service singleton or part of multiton according to
UniqueKey . |
<S extends Service> |
getServices(Class<S> clazz,
Object... keyPart)
Return the list of service singleton or part of multiton.
|
<S extends Service> |
getServices(UniqueKey<S> serviceKey)
Return the list of service singleton or part of multiton according to
UniqueKey . |
Object |
getThirdKeyPart()
Return the third key part of the
MultitonKey if any or null. |
UniqueKey<R> |
key() |
void |
key(UniqueKey<R> key) |
LocalFacade<R> |
localFacade()
Return the local facade used to manage singleton.
|
void |
localFacade(LocalFacade<R> localFacade)
Attach the local facade for this object type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release, setup
attachUi
returnData
callCommand, callCommand
public AbstractReady()
public final LocalFacade<R> localFacade()
localFacade
in interface FacadeReady<R extends FacadeReady<R>>
public final void localFacade(LocalFacade<R> localFacade)
localFacade
in interface FacadeReady<R extends FacadeReady<R>>
localFacade
- the local facade to setpublic UniqueKey<R> key()
key
in interface FacadeReady<R extends FacadeReady<R>>
public void key(UniqueKey<R> key)
key
in interface FacadeReady<R extends FacadeReady<R>>
key
- The key to set.public Object getFirstKeyPart()
MultitonKey
or the component class type for UniqueKey
.public Object getSecondKeyPart()
MultitonKey
if any or null.public Object getThirdKeyPart()
MultitonKey
if any or null.public List<Object> getListKeyPart()
public <KP> KP getKeyPart(Class<KP> keyPartClass)
keyPartClass
- the class used to search the first instancepublic final <S extends Service> S getService(Class<S> clazz, Object... keyPart)
getService
in interface ServiceReady
S
- a sub class of serviceclazz
- the service class to findkeyPart
- the unique key (in option)public final <S extends Service> S getService(UniqueKey<S> serviceKey)
UniqueKey
.getService
in interface ServiceReady
S
- a sub class of Service
serviceKey
- the key that describe the searched Service
componentpublic final <S extends Service> List<S> getServices(Class<S> clazz, Object... keyPart)
getServices
in interface ServiceReady
S
- a sub class of serviceclazz
- the service class to findkeyPart
- the unique key (in option)public final <S extends Service> List<S> getServices(UniqueKey<S> serviceKey)
UniqueKey
.getServices
in interface ServiceReady
S
- a sub class of Service
serviceKey
- the key that describe the searched Service
componentpublic final <C extends Command> C getCommand(Class<C> clazz, Object... keyPart)
getCommand
in interface CommandReady
C
- a sub class of commandclazz
- the service class to findkeyPart
- the unique key (in option)public final <C extends Command> C getCommand(UniqueKey<C> commandKey)
UniqueKey
.getCommand
in interface CommandReady
C
- a sub class of Command
commandKey
- the key that describe the searched Command
componentpublic final <C extends Command> List<C> getCommands(Class<C> clazz, Object... keyPart)
getCommands
in interface CommandReady
C
- a sub class of commandclazz
- the service class to findkeyPart
- the unique key (in option)public final <C extends Command> List<C> getCommands(UniqueKey<C> commandKey)
UniqueKey
.getCommands
in interface CommandReady
C
- a sub class of Command
commandKey
- the key that describe the searched Command
componentpublic final <M extends Model> M getModel(Class<M> clazz, Object... keyPart)
getModel
in interface ModelReady
M
- a sub class of Modelclazz
- the model class to findkeyPart
- key parts for multiton model (in option), singletonpublic final <M extends Model> M getModel(UniqueKey<M> modelKey)
UniqueKey
.getModel
in interface ModelReady
M
- a sub class of ModelmodelKey
- the key that describe the searched Model componentpublic final <M extends Model> List<M> getModels(Class<M> clazz, Object... keyPart)
getModels
in interface ModelReady
M
- a sub class of Modelclazz
- the model class to findkeyPart
- key parts for multiton model (in option), singletonpublic final <M extends Model> List<M> getModels(UniqueKey<M> modelKey)
UniqueKey
.getModels
in interface ModelReady
M
- a sub class of ModelmodelKey
- the key that describe the searched Model componentCopyright © 2011–2016 JRebirth OSS. All rights reserved.