@Deprecated public interface Enhancer<T> extends Sortable
DroneInstanceEnhancer instead.| Modifier and Type | Method and Description |
|---|---|
boolean |
canEnhance(Class<?> type,
Class<? extends Annotation> qualifier)
Deprecated.
Returns true when this
Enhancer is able to enhance given type. |
T |
deenhance(T enhancedInstance,
Class<? extends Annotation> qualifier)
Deprecated.
Takes the instance which was previously enhanced by
#enhance(Object) 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(Class<?> type, Class<? extends Annotation> qualifier)
Enhancer is able to enhance given type.type - the type of field or parameter which can be enhancedqualifier - the qualifier associated with the injected typeEnhancer is able to enhance given type.T enhance(T instance, Class<? extends Annotation> qualifier)
Takes the instance instantiated by Drone and returns its enhanced version.
Note: No enhancement can be done in this method.
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) method and cancels the enhancement.
No: No de-enhancement can be done in this method.
enhancedInstance - the instance which was previously enhanced by #enhance(Object).qualifier - the qualifier associated with an instanceCopyright © 2013 JBoss by Red Hat. All Rights Reserved.