Package org.apache.shiro.guice.aop
Class ShiroAopModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.apache.shiro.guice.aop.ShiroAopModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class ShiroAopModule extends com.google.inject.AbstractModule
Install this module to enable Shiro AOP functionality in Guice. You may extend it to add your own Shiro interceptors, override the default ones, or provide a specificAnnotationResolver
.
-
-
Constructor Summary
Constructors Constructor Description ShiroAopModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindShiroInterceptor(AnnotationMethodInterceptor methodInterceptor)
protected void
configure()
protected void
configureDefaultInterceptors(AnnotationResolver resolver)
protected void
configureInterceptors(AnnotationResolver resolver)
protected AnnotationResolver
createAnnotationResolver()
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Constructor Detail
-
ShiroAopModule
public ShiroAopModule()
-
-
Method Detail
-
configure
protected final void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
bindShiroInterceptor
protected final void bindShiroInterceptor(AnnotationMethodInterceptor methodInterceptor)
-
createAnnotationResolver
protected AnnotationResolver createAnnotationResolver()
-
configureDefaultInterceptors
protected void configureDefaultInterceptors(AnnotationResolver resolver)
-
configureInterceptors
protected void configureInterceptors(AnnotationResolver resolver)
-
-