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.
|
boolean |
equals(Object object) |
int |
hashCode() |
Advice |
to(Class<?> type)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(Class<?> type,
ClassFileLocator classFileLocator)
Implements advice where every matched method is advised by the given type's advisory methods.
|
Advice |
to(TypeDescription typeDescription,
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, 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<?> type)
type
- The type declaring the advice.public Advice to(Class<?> type, ClassFileLocator classFileLocator)
type
- The type declaring the advice.classFileLocator
- The class file locator for locating the advisory class's class file.public Advice to(TypeDescription typeDescription, ClassFileLocator classFileLocator)
typeDescription
- A description of the type declaring the advice.classFileLocator
- The class file locator for locating the advisory class's class file.Copyright © 2014–2016. All rights reserved.