use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler in project qi4j-sdk by Qi4j.
the class RedisMapEntityStoreTest 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 RedisMapEntityStoreAssembler().withConfigModule(config).assemble(module);
}
use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler in project qi4j-sdk by Qi4j.
the class MySQLEntityStoreTest 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("mysql-datasource-service").visibleIn(Visibility.module).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
// DataSource
new DataSourceAssembler().withDataSourceServiceIdentity("mysql-datasource-service").identifiedBy("mysql-datasource").visibleIn(Visibility.module).withCircuitBreaker().assemble(module);
// SQL EntityStore
new MySQLEntityStoreAssembler().visibleIn(Visibility.application).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
}
use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler in project qi4j-sdk by Qi4j.
the class PostgreSQLEntityStoreTest 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("postgresql-datasource-service").visibleIn(Visibility.module).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
// DataSource
new DataSourceAssembler().withDataSourceServiceIdentity("postgresql-datasource-service").identifiedBy("postgresql-datasource").visibleIn(Visibility.module).withCircuitBreaker();
// SQL EntityStore
new PostgreSQLEntityStoreAssembler().visibleIn(Visibility.application).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
}
use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler in project qi4j-sdk by Qi4j.
the class JdbmEventStoreServiceTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.layer().application().setName("JDBMEventStoreTest");
new EntityTestAssembler().assemble(module);
module.values(DomainEventValue.class, UnitOfWorkDomainEventsValue.class);
module.services(FileConfigurationService.class);
new OrgJsonValueSerializationAssembler().assemble(module);
module.services(JdbmEventStoreService.class);
module.services(DomainEventFactoryService.class);
module.importedServices(CurrentUserUoWPrincipal.class).importedBy(ImportedServiceDeclaration.NEW_OBJECT);
module.objects(CurrentUserUoWPrincipal.class);
module.entities(TestEntity.class).withConcerns(DomainEventCreationConcern.class);
}
use of org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler in project qi4j-sdk by Qi4j.
the class ContextResourceClientFactoryTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
// General setup of client and server
new OrgJsonValueSerializationAssembler().assemble(module);
new ClientAssembler().assemble(module);
new ValueAssembler().assemble(module);
new RestServerAssembler().assemble(module);
module.objects(NullCommandResult.class);
module.importedServices(CommandResult.class).importedBy(NEW_OBJECT);
module.importedServices(MetadataService.class).importedBy(NEW_OBJECT);
module.objects(MetadataService.class);
// Test specific setup
module.values(TestQuery.class, TestResult.class, TestCommand.class);
module.forMixin(TestQuery.class).declareDefaults().abc().set("def");
module.objects(RootRestlet.class, RootResource.class, RootContext.class, SubResource1.class, PagesResource.class);
module.objects(DescribableContext.class);
module.transients(TestComposite.class);
}
Aggregations