|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shiro.aop.AnnotationHandler
public abstract class AnnotationHandler
Base support class for implementations that reads and processes JSR-175 annotations.
Field Summary | |
---|---|
protected Class<? extends Annotation> |
annotationClass
The type of annotation this handler will process. |
Constructor Summary | |
---|---|
AnnotationHandler(Class<? extends Annotation> annotationClass)
Constructs an AnnotationHandler who processes annotations of the
specified type. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Class<? extends Annotation> annotationClass
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |