public static ContextListenerDeclaration listen() { return new ContextListenerDeclaration(); }
public void to( ModuleAssembly module ) throws AssemblyException { for ( ContextListenerDeclaration contextListenerDeclaration : contextListenerDeclarations ) { module.services( contextListenerDeclaration.contextListener() ). setMetaInfo( contextListenerDeclaration.contextListenerInfo() ). instantiateOnStartup().visibleIn( layer ); } }
@Override public void assemble( ModuleAssembly module ) { super.assemble( module ); addContextListeners( listen().with( EnvironmentLoaderService.class ) ) .to( module ); addFilters( filter( "/*" ) .through( ShiroFilterService.class ) .on( REQUEST, FORWARD, INCLUDE, ERROR, ASYNC ) ) .to( module ); if( hasConfig() ) { configModule() .entities( ShiroIniConfiguration.class ) .visibleIn( configVisibility() ); } } }
@Override public void assemble( ModuleAssembly module ) { super.assemble( module ); addContextListeners( listen().with( EnvironmentLoaderService.class ) ) .to( module ); addFilters( filter( "/*" ) .through( ShiroFilterService.class ) .on( REQUEST, FORWARD, INCLUDE, ERROR, ASYNC ) ) .to( module ); if( hasConfig() ) { configModule() .entities( ShiroIniConfiguration.class ) .visibleIn( configVisibility() ); } } }
public static ContextListenerDeclaration listen() { return new ContextListenerDeclaration(); }
public void to( ModuleAssembly module ) throws AssemblyException { for ( ContextListenerDeclaration contextListenerDeclaration : contextListenerDeclarations ) { module.services( contextListenerDeclaration.contextListener() ). setMetaInfo( contextListenerDeclaration.contextListenerInfo() ). instantiateOnStartup().visibleIn( layer ); } }