| Modifier | Constructor and Description |
|---|---|
protected |
WithCustomMapping()
Creates a new custom mapping builder step without including any custom mappings.
|
protected |
WithCustomMapping(Map<Class<? extends Annotation>,Advice.DynamicValue<?>> dynamicValues)
Creates a new custom mapping builder step with the given custom mappings.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
bind(Class<? extends T> type,
Advice.DynamicValue<T> dynamicValue)
Binds an annotation type to dynamically computed value.
|
<T extends Annotation> |
bind(Class<? extends T> type,
Serializable value)
Binds the supplied annotation to the supplied fixed value.
|
<T extends Annotation> |
bind(Class<? extends T> type,
TypeDescription value)
Binds the supplied annotation to the supplied fixed value.
|
<T extends Annotation> |
bindProperty(Class<? extends T> type,
String property)
Binds the supplied annotation to the annotation's property of the specified name.
|
boolean |
equals(Object other) |
int |
hashCode() |
Advice |
to(Class<?> advice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(Class<?> enterAdvice,
Class<?> exitAdvice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(Class<?> enterAdvice,
Class<?> exitAdvice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(Class<?> advice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(TypeDescription advice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(TypeDescription enterAdvice,
TypeDescription exitAdvice)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(TypeDescription enterAdvice,
TypeDescription exitAdvice,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
String |
toString() |
protected WithCustomMapping()
protected WithCustomMapping(Map<Class<? extends Annotation>,Advice.DynamicValue<?>> dynamicValues)
dynamicValues - A map containing dynamically computed constant pool values that are mapped by their triggering annotation type.public <T extends Annotation> Advice.WithCustomMapping bind(Class<? extends T> type, TypeDescription value)
T - The annotation type.type - The type of the annotation being bound.value - The type reference to bind to this annotation.Advice.DynamicValue.ForFixedValuepublic <T extends Annotation> Advice.WithCustomMapping bind(Class<? extends T> type, Serializable value)
T - The annotation type.type - The type of the annotation being bound.value - The value to bind to this annotation.Advice.DynamicValue.ForFixedValuepublic <T extends Annotation> Advice.WithCustomMapping bindProperty(Class<? extends T> type, String property)
T - The annotation type.type - The type of the annotation being bound.property - The name of the annotation property to be bound.public <T extends Annotation> Advice.WithCustomMapping bind(Class<? extends T> type, Advice.DynamicValue<T> dynamicValue)
Advice component discovers the given annotation on
a parameter of an advice method, the dynamic value is asked to provide a value that is then assigned to the parameter in question.T - The annotation type.type - The annotation type that triggers the mapping.dynamicValue - The dynamic value that is computed for binding the parameter to a value.public Advice to(Class<?> advice)
advice - The type declaring the advice.public Advice to(Class<?> advice, ClassFileLocator classFileLocator)
advice - The type declaring the advice.classFileLocator - The class file locator for locating the advisory class's class file.public Advice to(TypeDescription advice, ClassFileLocator classFileLocator)
advice - A description of the type declaring the advice.classFileLocator - The class file locator for locating the advisory class's class file.public Advice to(Class<?> enterAdvice, Class<?> exitAdvice)
enterAdvice - The type declaring the enter advice.exitAdvice - The type declaring the exit advice.public Advice to(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator)
enterAdvice - The type declaring the enter advice.exitAdvice - The type declaring the exit advice.classFileLocator - The class file locator for locating the advisory class's class file.public Advice to(TypeDescription enterAdvice, TypeDescription exitAdvice)
false are resolvable by the returned instance.enterAdvice - The type declaring the enter advice.exitAdvice - The type declaring the exit advice.public Advice to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator)
enterAdvice - The type declaring the enter advice.exitAdvice - The type declaring the exit advice.classFileLocator - The class file locator for locating the advisory class's class file.Copyright © 2014–2016. All rights reserved.