@Override public void assemble( ModuleAssembly module ) { super.assemble( module ); ServiceDeclaration service = module.services( IniSecurityManagerService.class ). visibleIn( visibility() ). instantiateOnStartup(); if( hasIdentity() ) { service.identifiedBy( identity() ); } if( hasConfig() ) { configModule().entities( ShiroIniConfiguration.class ). visibleIn( configVisibility() ); } } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { new EntityTestAssembler().assemble( module ); ModuleAssembly configModule = module; // START SNIPPET: assembly new StandaloneShiroAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); // END SNIPPET: assembly configModule.forMixin( ShiroIniConfiguration.class ). declareDefaults(). iniResourcePath().set( "classpath:standalone-shiro.ini" ); }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { // END SNIPPET: realm-service new EntityTestAssembler().assemble( module ); ModuleAssembly configModule = module; // START SNIPPET: realm-service new StandaloneShiroAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); module.services( MyRealmService.class ); // END SNIPPET: realm-service configModule.forMixin( ShiroIniConfiguration.class ). declareDefaults(). iniResourcePath().set( "classpath:standalone-shiro.ini" ); // START SNIPPET: realm-service }
@Override public void assemble( ModuleAssembly module ) { super.assemble( module ); ServiceDeclaration service = module.services( IniSecurityManagerService.class ). visibleIn( visibility() ). instantiateOnStartup(); if( hasIdentity() ) { service.identifiedBy( identity() ); } if( hasConfig() ) { configModule().entities( ShiroIniConfiguration.class ). visibleIn( configVisibility() ); } } }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { // END SNIPPET: assembly new EntityTestAssembler().assemble( module ); new RdfMemoryStoreAssembler().assemble( module ); ModuleAssembly configModule = module; // START SNIPPET: assembly new StandaloneShiroAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); new PasswordDomainAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); module.entities( User.class ); module.services( UserFactory.class ); // END SNIPPET: assembly configModule.forMixin( ShiroIniConfiguration.class ). declareDefaults(). iniResourcePath().set( "classpath:standalone-shiro.ini" ); // START SNIPPET: assembly }
@Override public void assemble( ModuleAssembly module ) throws AssemblyException { new EntityTestAssembler().assemble( module ); new RdfMemoryStoreAssembler().assemble( module ); ModuleAssembly configModule = module; // START SNIPPET: assembly new StandaloneShiroAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); new PasswordDomainAssembler(). withConfig( configModule, Visibility.layer ). assemble( module ); new PermissionsDomainAssembler(). assemble( module ); module.entities( User.class ); module.services( UserFactory.class ); // END SNIPPET: assembly configModule.forMixin( ShiroIniConfiguration.class ). declareDefaults(). iniResourcePath().set( "classpath:standalone-shiro.ini" ); }