public abstract class AnnotationHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends Annotation> |
annotationClass
The type of annotation this handler will process.
|
| Constructor and Description |
|---|
AnnotationHandler(Class<? extends Annotation> annotationClass)
Constructs an
AnnotationHandler who processes annotations of the
specified type. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
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<? extends Annotation> annotationClass)
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 Subject getSubject()
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()
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.