Package org.jboss.arquillian.drone.spi
Interface DroneInstanceEnhancer<T>
-
- All Superinterfaces:
Sortable
@Deprecated public interface DroneInstanceEnhancer<T> extends Sortable
Deprecated.Enhances Drone instance in order to give it additional capabilities.- Author:
- Karel Piwko, Lukas Fryc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancanEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier)Deprecated.Returnstruewhen thisDroneInstanceEnhanceris able to enhance or deenhance given type.Tdeenhance(T enhancedInstance, Class<? extends Annotation> qualifier)Deprecated.Takes the instance which was previously enhanced byenhance(Object, Class)method and cancels the enhancement.Tenhance(T instance, Class<? extends Annotation> qualifier)Deprecated.Takes the instance instantiated by Drone and returns its enhanced version.-
Methods inherited from interface org.jboss.arquillian.drone.spi.Sortable
getPrecedence
-
-
-
-
Method Detail
-
canEnhance
boolean canEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier)
Deprecated.Returnstruewhen thisDroneInstanceEnhanceris able to enhance or deenhance given type.- Parameters:
instance- instance of Drone to be enhanced / deenhanceddroneType- the field or parameter type defined in testqualifier- the qualifier associated with the injected type- Returns:
truewhen thisDroneInstanceEnhanceris able to enhance or deenhance given type,falseotherwise
-
enhance
T enhance(T instance, Class<? extends Annotation> qualifier)
Deprecated.Takes the instance instantiated by Drone and returns its enhanced version.
- Parameters:
instance- the instance to be enhancedqualifier- the qualifier associated with an instance- Returns:
- the enhanced instance
-
deenhance
T deenhance(T enhancedInstance, Class<? extends Annotation> qualifier)
Deprecated.Takes the instance which was previously enhanced by
enhance(Object, Class)method and cancels the enhancement.- Parameters:
enhancedInstance- the instance which was previously enhanced by#enhance(Object).qualifier- the qualifier associated with an instance- Returns:
- the deenhanced instance
-
-