abstract class BaseCommandMatch.BaseInvoker extends CommandInvoker<C,P> implements Instance<T>
Modifier | Constructor and Description |
---|---|
protected |
BaseCommandMatch.BaseInvoker(T command) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Return the instance, the same instance should be returned, however it can lazily be created.
|
<U> U |
resolve(Class<U> type)
Resolve the specified contextual type to an instance or return null if no object able
to satisfy the class type was resolved.
|
close, flush, getKeyHandler, getScreenContext, invoke, open, provide
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsumedType
getProducedType
final T extends BaseCommand command
protected BaseCommandMatch.BaseInvoker(T command)
public <U> U resolve(Class<U> type)
Instance
resolve
in interface Instance<T extends BaseCommand>
U
- the generic type parametertype
- the type to resolvepublic T get() throws Exception
Instance
get
in interface Instance<T extends BaseCommand>
Exception
- any exception preventing to obtain the instanceCopyright © 2015 eXo Platform SAS. All Rights Reserved.