Package org.jboss.arquillian.drone.spi
Interface InstanceOrCallableInstance
-
@Deprecated public interface InstanceOrCallableInstance
Deprecated.Holder of either instance or Callable that after invoked, will result into the instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> Callable<T>asCallableInstance(Class<T> type)Deprecated.Wraps as callable<T> TasInstance(Class<T> type)Deprecated.Wraps as instancebooleanisInstance()Deprecated.Checks whether context contains a real instancebooleanisInstanceCallable()Deprecated.Checks whether context contains a real instanceInstanceOrCallableInstanceset(Object object)Deprecated.Sets value toobject.
-
-
-
Method Detail
-
set
InstanceOrCallableInstance set(Object object) throws IllegalArgumentException
Deprecated.Sets value toobject. This is a convenient method to modify content ofDroneContextfrom various events.- Parameters:
object- new value- Returns:
- modified instance
- Throws:
IllegalArgumentException- If new value isnull
-
isInstance
boolean isInstance()
Deprecated.Checks whether context contains a real instance- Returns:
trueif instance is hold,falseotherwise
-
isInstanceCallable
boolean isInstanceCallable()
Deprecated.Checks whether context contains a real instance- Returns:
trueif instance is hold,falseotherwise
-
asInstance
<T> T asInstance(Class<T> type) throws IllegalStateException
Deprecated.Wraps as instance- Parameters:
type- Type of the instance- Returns:
- wrapped instance
- Throws:
IllegalStateException- If content is not an instance
-
asCallableInstance
<T> Callable<T> asCallableInstance(Class<T> type) throws IllegalStateException
Deprecated.Wraps as callable- Parameters:
type- Type of the callable- Returns:
- wrapped callable
- Throws:
IllegalStateException- If content is not a callable
-
-