use of org.qi4j.library.shiro.assembly.PasswordDomainAssembler in project qi4j-sdk by Qi4j.
the class PasswordDomainTest method assemble.
// END SNIPPET: domain
// START SNIPPET: assembly
@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).assemble(module);
new PasswordDomainAssembler().withConfig(configModule).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
}
use of org.qi4j.library.shiro.assembly.PasswordDomainAssembler in project qi4j-sdk by Qi4j.
the class PermissionsDomainTest method assemble.
@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).assemble(module);
new PasswordDomainAssembler().withConfig(configModule).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");
}
Aggregations