Uses of Interface
org.apache.shiro.aop.MethodInvocation
Packages that use MethodInvocation
Package
Description
Components used to support the framework's AOP/interception support classes.
Contains AOP implementation support classes specifically used for authorization operations, particularly supporting
AOP Method Interceptors and JSR-175 metadata Annotations.
-
Uses of MethodInvocation in org.apache.shiro.aop
Methods in org.apache.shiro.aop with parameters of type MethodInvocationModifier and TypeMethodDescriptionprotected AnnotationAnnotationMethodInterceptor.getAnnotation(MethodInvocation mi) Returns the Annotation that this interceptor will process for the specified method invocation.AnnotationResolver.getAnnotation(MethodInvocation mi, Class<? extends Annotation> clazz) Returns anAnnotationinstance of the specified type based on the givenMethodInvocationargument, ornullif no annotation of that type could be found.DefaultAnnotationResolver.getAnnotation(MethodInvocation mi, Class<? extends Annotation> clazz) ReturnsmethodInvocation.getMethod().MethodInterceptor.invoke(MethodInvocation methodInvocation) Invokes the specifiedMethodInvocation, allowing implementations to perform pre/post/finally surrounding the actual invocation.booleanAnnotationMethodInterceptor.supports(MethodInvocation mi) Returnstrueif this interceptor supports, that is, should inspect, the specifiedMethodInvocation,falseotherwise. -
Uses of MethodInvocation in org.apache.shiro.authz.aop
Methods in org.apache.shiro.authz.aop with parameters of type MethodInvocationModifier and TypeMethodDescriptionprotected voidAnnotationsAuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation) Iterates over the internalmethodInterceptorscollection, and for each one, ensures that if the interceptorsupportsthe invocation, that the interceptorassertsthat the invocation is authorized to proceed.voidAuthorizingAnnotationMethodInterceptor.assertAuthorized(MethodInvocation mi) Ensures the calling Subject is authorized to execute the specifiedMethodInvocation.protected abstract voidAuthorizingMethodInterceptor.assertAuthorized(MethodInvocation methodInvocation) Asserts that the specified MethodInvocation is allowed to continue by performing any necessary authorization (access control) checks first.AuthorizingAnnotationMethodInterceptor.invoke(MethodInvocation methodInvocation) Ensures themethodInvocationis allowed to execute first before proceeding by calling theassertAuthorizedmethod first.AuthorizingMethodInterceptor.invoke(MethodInvocation methodInvocation) Invokes the specified method (methodInvocation.if authorization is allowed by first callingproceed()assertAuthorized.