public class SavedAnnotationsHandler extends Object implements Handler
Don't forget that annotations need to have their retention
set to runtime in order to be visible.
| Constructor and Description |
|---|
SavedAnnotationsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAnnotation(Class<? extends Annotation> annotation,
Object object)
Processes the annotation type and the associated object.
|
Resolution<?> |
resolve(ResolutionContext context)
Resolves the context such that the object identified by the context's object identifier can be
instantiated or retrieved.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonProvider, onProviderClass, postProcesspublic Resolution<?> resolve(ResolutionContext context)
Handler
The returned Resolution must correspond to the type represented by the context's object identifier.
public void onAnnotation(Class<? extends Annotation> annotation, Object object)
HandleronAnnotation in interface Handlerannotation - the annotation typeobject - the objectCopyright © 2017. All rights reserved.