JSecurity

org.jsecurity.aop
Class AnnotationMethodInterceptor

java.lang.Object
  extended by org.jsecurity.aop.MethodInterceptorSupport
      extended by org.jsecurity.aop.AnnotationMethodInterceptor
All Implemented Interfaces:
MethodInterceptor
Direct Known Subclasses:
AuthorizingAnnotationMethodInterceptor

public abstract class AnnotationMethodInterceptor
extends MethodInterceptorSupport

MethodInterceptor that inspects a specific annotation on the method invocation before continuing its execution.

Since:
0.9
Author:
Les Hazlewood

Field Summary
protected  Class<? extends Annotation> annotationClass
           
 
Constructor Summary
AnnotationMethodInterceptor(Class<? extends Annotation> annotationClass)
           
 
Method Summary
protected  Annotation getAnnotation(MethodInvocation mi)
           
 Class<? extends Annotation> getAnnotationClass()
           
protected  void setAnnotationClass(Class<? extends Annotation> annotationClass)
           
 boolean supports(MethodInvocation mi)
           
 
Methods inherited from class org.jsecurity.aop.MethodInterceptorSupport
getSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jsecurity.aop.MethodInterceptor
invoke
 

Field Detail

annotationClass

protected Class<? extends Annotation> annotationClass
Constructor Detail

AnnotationMethodInterceptor

public AnnotationMethodInterceptor(Class<? extends Annotation> annotationClass)
Method Detail

setAnnotationClass

protected void setAnnotationClass(Class<? extends Annotation> annotationClass)

getAnnotationClass

public Class<? extends Annotation> getAnnotationClass()

supports

public boolean supports(MethodInvocation mi)

getAnnotation

protected Annotation getAnnotation(MethodInvocation mi)

JSecurity

Copyright © 2004-2008 JSecurity.