use of org.qi4j.bootstrap.ModuleAssembly in project qi4j-sdk by Qi4j.
the class RiakProtobufMapEntityStoreTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
// END SNIPPET: assembly
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
// START SNIPPET: assembly
new RiakProtobufMapEntityStoreAssembler().withConfig(config, Visibility.layer).assemble(module);
}
use of org.qi4j.bootstrap.ModuleAssembly in project qi4j-sdk by Qi4j.
the class HazelcastEntityStoreTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
// END SNIPPET: assembly
super.assemble(module);
ModuleAssembly configModule = module.layer().module("config");
new EntityTestAssembler().assemble(configModule);
new OrgJsonValueSerializationAssembler().assemble(module);
// START SNIPPET: assembly
new HazelcastEntityStoreAssembler().withConfig(configModule, Visibility.layer).assemble(module);
}
use of org.qi4j.bootstrap.ModuleAssembly in project qi4j-sdk by Qi4j.
the class JCloudsFilesystemTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
new JCloudsMapEntityStoreAssembler().withConfig(config, Visibility.layer).assemble(module);
JCloudsMapEntityStoreConfiguration defaults = config.forMixin(JCloudsMapEntityStoreConfiguration.class).declareDefaults();
defaults.provider().set("filesystem");
Map<String, String> props = new HashMap<String, String>();
props.put(FilesystemConstants.PROPERTY_BASEDIR, "build/tmp/" + getClass().getPackage().getName() + "/es-jclouds-" + System.currentTimeMillis());
defaults.properties().set(props);
}
use of org.qi4j.bootstrap.ModuleAssembly in project qi4j-sdk by Qi4j.
the class JdbmEntityStoreTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
config.services(FileConfigurationService.class).visibleIn(Visibility.layer).instantiateOnStartup();
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
new JdbmEntityStoreAssembler().withConfig(config, Visibility.layer).assemble(module);
}
use of org.qi4j.bootstrap.ModuleAssembly in project qi4j-sdk by Qi4j.
the class SQLiteEntityStoreTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
// END SNIPPET: assembly
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
// START SNIPPET: assembly
// DataSourceService
new DBCPDataSourceServiceAssembler().identifiedBy("sqlite-datasource-service").visibleIn(Visibility.module).withConfig(config, Visibility.layer).assemble(module);
// DataSource
new DataSourceAssembler().withDataSourceServiceIdentity("sqlite-datasource-service").identifiedBy("sqlite-datasource").visibleIn(Visibility.module).withCircuitBreaker().assemble(module);
// SQL EntityStore
new SQLiteEntityStoreAssembler().visibleIn(Visibility.application).withConfig(config, Visibility.layer).assemble(module);
}
Aggregations