Class AopAllianceAnnotationsAuthorizingMethodInterceptor

    • Method Detail

      • createMethodInvocation

        protected MethodInvocation createMethodInvocation​(Object implSpecificMethodInvocation)
        Creates a MethodInvocation that wraps an org.aopalliance.intercept.MethodInvocation instance, enabling Shiro Annotations in AOP Alliance environments (Spring, etc).
        Parameters:
        implSpecificMethodInvocation - AOP Alliance MethodInvocation
        Returns:
        a Shiro MethodInvocation instance that wraps the AOP Alliance instance.
      • continueInvocation

        protected Object continueInvocation​(Object aopAllianceMethodInvocation)
                                     throws Throwable
        Simply casts the method argument to an org.aopalliance.intercept.MethodInvocation and then calls methodInvocation.proceed()
        Parameters:
        aopAllianceMethodInvocation - the org.aopalliance.intercept.MethodInvocation
        Returns:
        the org.aopalliance.intercept.MethodInvocation.proceed() method call result.
        Throws:
        Throwable - if the underlying AOP Alliance proceed() call throws a Throwable.
      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation methodInvocation)
                      throws Throwable
        Creates a Shiro MethodInvocation instance and then immediately calls super.invoke.
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Parameters:
        methodInvocation - the AOP Alliance-specific methodInvocation instance.
        Returns:
        the return value from invoking the method invocation.
        Throws:
        Throwable - if the underlying AOP Alliance method invocation throws a Throwable.