public class AnnotationDefaults extends Object implements InvocationHandler
Constructor and Description |
---|
AnnotationDefaults(Map<String,Object> overrides) |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
create(Class<A> annotation)
Creates a proxy class that returns the default value from the annotation for every method.
|
static <A extends Annotation> |
create(Class<A> annotation,
Map<String,Object> overrides)
Creates a proxy class that returns the default value from the annotation for every method.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Finds the default value for the original method.
|
@ConstructorProperties(value="overrides") @Generated(value="lombok") public AnnotationDefaults(Map<String,Object> overrides)
public static <A extends Annotation> A create(Class<A> annotation)
annotation
- the annotation classpublic static <A extends Annotation> A create(Class<A> annotation, Map<String,Object> overrides)
annotation
- the annotation classoverrides
- the name methods that should return a value different from defaultCopyright © 2022 fastnate.org. All rights reserved.