A - The type of the annotation that this builder should constructpublic final class AnnotationProxyBuilder<A extends Annotation> extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
private Class<A> |
annotation |
private Map<String,Object> |
valuesByMethodName |
| Modifier | Constructor and Description |
|---|---|
|
AnnotationProxyBuilder(Class<A> annotation)
Constructs a builder for the specified annotation.
|
private |
AnnotationProxyBuilder(Class<A> annotation,
Map<String,Object> valuesByMethodName) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationProxyBuilder<A> |
add(String methodName,
Object value)
Configures the value that a given method on the annotation should return.
|
A |
build()
The annotation instance (a proxy).
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
private final Class<A extends Annotation> annotation
public AnnotationProxyBuilder(Class<A> annotation)
annotation - The type of the annotation that this builder should construct.public A build()
public AnnotationProxyBuilder<A> add(String methodName, Object value)
methodName - Name of the annotation methodvalue - The value that the annotation method should returnIllegalArgumentException - if methodName is not declared on the attribute
Version 2.0.0 generated on 2014-11-22 at 09:45 - (C) 41concepts Aps. Refer to project homepage valjogen.41concepts.com for more information.