@Deprecated public interface InstanceOrCallableInstance
| Modifier and Type | Method and Description |
|---|---|
<T> Callable<T> |
asCallableInstance(Class<T> type)
Deprecated.
Wraps as callable
|
<T> T |
asInstance(Class<T> type)
Deprecated.
Wraps as instance
|
boolean |
isInstance()
Deprecated.
Checks whether context contains a real instance
|
boolean |
isInstanceCallable()
Deprecated.
Checks whether context contains a real instance
|
InstanceOrCallableInstance |
set(Object object)
Deprecated.
Sets value to
object. |
InstanceOrCallableInstance set(Object object) throws IllegalArgumentException
object. This is a convenient method to modify content of DroneContext from various events.object - new valueIllegalArgumentException - If new value is nullboolean isInstance()
true if instance is hold, false otherwiseboolean isInstanceCallable()
true if instance is hold, false otherwise<T> T asInstance(Class<T> type) throws IllegalStateException
type - Type of the instanceIllegalStateException - If content is not an instance<T> Callable<T> asCallableInstance(Class<T> type) throws IllegalStateException
type - Type of the callableIllegalStateException - If content is not a callableCopyright © 2016 JBoss by Red Hat. All rights reserved.