public class AopHelper extends Object
| Constructor and Description |
|---|
AopHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.shiro.authz.aop.AuthorizingAnnotationHandler |
createHandler(Annotation annotation)
Create
AuthorizingAnnotationHandler for annotation. |
static List<SecurityInterceptor> |
createSecurityInterceptors(Method method,
Class<?> clazz)
Create list of
SecurityInterceptor instances for method. |
static List<SecurityInterceptor> |
createSecurityInterceptorsSeeingInterfaces(Method method,
Class<?> targetClass)
Create list of
SecurityInterceptor instances for method. |
static Method |
findTargetMethod(Method method,
Class<?> targetClass)
Find the target method of interface.
|
static Collection<Class<? extends Annotation>> |
getAutorizationAnnotationClasses() |
static boolean |
isInterceptOnClassAnnotation(int modifiers)
Rule under which determined the fate of the class contains annotation.
|
public static org.apache.shiro.authz.aop.AuthorizingAnnotationHandler createHandler(Annotation annotation)
AuthorizingAnnotationHandler for annotation.annotation - the given annotationpublic static List<SecurityInterceptor> createSecurityInterceptors(Method method, Class<?> clazz)
SecurityInterceptor instances for method. This method search all method and
class annotations and use annotation data for create interceptors.
This method considers only those annotations that have been declared in the set through parameters of the method and class, regardless
of the inheritance or interface implementationsmethod - clazz - public static List<SecurityInterceptor> createSecurityInterceptorsSeeingInterfaces(Method method, Class<?> targetClass)
SecurityInterceptor instances for method. This method search all method and
class annotations and use annotation data for create interceptors.
In contrast of the createSecurityInterceptors(Method, Class), this method looking for the annotations in all interfaces, witch
implement the targetClass.
The following rules
rule.method - targetClass - public static Method findTargetMethod(Method method, Class<?> targetClass)
public static boolean isInterceptOnClassAnnotation(int modifiers)
public static Collection<Class<? extends Annotation>> getAutorizationAnnotationClasses()
Copyright © 2004–2020. All rights reserved.