Search in sources :

Example 6 with RdfMemoryStoreAssembler

use of org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler in project qi4j-sdk by Qi4j.

the class AbstractSchedulerTest method assemble.

@Override
public final void assemble(ModuleAssembly assembly) throws AssemblyException {
    assembly.entities(FooTask.class);
    new EntityTestAssembler().assemble(assembly);
    new RdfMemoryStoreAssembler().assemble(assembly);
    onAssembly(assembly);
}
Also used : RdfMemoryStoreAssembler(org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 7 with RdfMemoryStoreAssembler

use of org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler 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, 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");
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) ShiroIniConfiguration(org.qi4j.library.shiro.ini.ShiroIniConfiguration) RdfMemoryStoreAssembler(org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler) StandaloneShiroAssembler(org.qi4j.library.shiro.assembly.StandaloneShiroAssembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) PasswordDomainAssembler(org.qi4j.library.shiro.assembly.PasswordDomainAssembler) PermissionsDomainAssembler(org.qi4j.library.shiro.assembly.PermissionsDomainAssembler)

Example 8 with RdfMemoryStoreAssembler

use of org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler in project qi4j-sdk by Qi4j.

the class ApplicationSample method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    module.entities(CarEntity.class);
    module.entities(AnimalEntity.class);
    new RdfMemoryStoreAssembler().assemble(module);
    new EntityTestAssembler().assemble(module);
}
Also used : RdfMemoryStoreAssembler(org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Aggregations

RdfMemoryStoreAssembler (org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler)8 EntityTestAssembler (org.qi4j.test.EntityTestAssembler)8 ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)3 PasswordDomainAssembler (org.qi4j.library.shiro.assembly.PasswordDomainAssembler)2 StandaloneShiroAssembler (org.qi4j.library.shiro.assembly.StandaloneShiroAssembler)2 ShiroIniConfiguration (org.qi4j.library.shiro.ini.ShiroIniConfiguration)2 Test (org.junit.Test)1 UnitOfWork (org.qi4j.api.unitofwork.UnitOfWork)1 SingletonAssembler (org.qi4j.bootstrap.SingletonAssembler)1 PermissionsDomainAssembler (org.qi4j.library.shiro.assembly.PermissionsDomainAssembler)1 TracingAssembler (org.qi4j.logging.trace.assemblies.TracingAssembler)1