public abstract class AnnotationHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class |
annotationClass
The type of annotation this handler will process.
|
| Constructor and Description |
|---|
AnnotationHandler(Class
Constructs an
AnnotationHandler who processes annotations of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getAnnotationClass()
Returns the type of annotation this handler inspects and processes.
|
protected Subject |
getSubject()
Returns the
Subject associated with the currently-executing code.
|
protected void |
setAnnotationClass(Class
Sets the type of annotation this handler will inspect and process.
|
protected Class<? extends Annotation > annotationClass
public AnnotationHandler(Class<? extends Annotation > annotationClass)
AnnotationHandler who processes annotations of the specified type. Immediately calls
setAnnotationClass(Class).
annotationClass - the type of annotation this handler will process.
protected SubjectgetSubject()
Subject associated with the currently-executing code.
This default implementation merely calls
SecurityUtils.getSubject().
Subject associated with the currently-executing code.
protected void setAnnotationClass(Class<? extends Annotation > annotationClass) throws IllegalArgumentException
annotationClass - the type of annotation this handler will process.
IllegalArgumentException - if the argument is
null.
public Class<? extends Annotation > getAnnotationClass()