@Deprecated public interface DroneInstanceEnhancer<T> extends Sortable
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEnhance(InstanceOrCallableInstance instance,
Class<?> droneType,
Class<? extends Annotation> qualifier)
Deprecated.
Returns
true when this DroneInstanceEnhancer is able to enhance or deenhance given type. |
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. |
T |
enhance(T instance,
Class<? extends Annotation> qualifier)
Deprecated.
Takes the instance instantiated by Drone and returns its enhanced version.
|
getPrecedenceboolean canEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier)
true when this DroneInstanceEnhancer is able to enhance or deenhance given type.instance - instance of Drone to be enhanced / deenhanceddroneType - the field or parameter type defined in testqualifier - the qualifier associated with the injected typetrue when this DroneInstanceEnhancer is able to enhance or deenhance given type, false
otherwiseT enhance(T instance, Class<? extends Annotation> qualifier)
Takes the instance instantiated by Drone and returns its enhanced version.
instance - the instance to be enhancedqualifier - the qualifier associated with an instanceT deenhance(T enhancedInstance, Class<? extends Annotation> qualifier)
Takes the instance which was previously enhanced by enhance(Object, Class) method and cancels the enhancement.
enhancedInstance - the instance which was previously enhanced by #enhance(Object).qualifier - the qualifier associated with an instanceCopyright © 2016 JBoss by Red Hat. All rights reserved.