throws Exception
{
System.setProperty( "qi4j.compacttrace", "off" );
Energy4Java is = new Energy4Java();
Application app = is.newApplication( new ApplicationAssembler()
{
public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory )
throws AssemblyException
{
return applicationFactory.newApplicationAssembly( new Assembler[][][]{
{
{
new Assembler()
{
public void assemble( ModuleAssembly module )
throws AssemblyException
{
module.objects( PrivateEntityUnitOfWorkTest.class );
}
}
}
},
{
{
new Assembler()
{
public void assemble( ModuleAssembly module )
throws AssemblyException
{
module.entities( ProductEntity.class );
module.entities( ProductCatalogEntity.class ).visibleIn( application );
module.values( ProductInfo.class );
new EntityTestAssembler().assemble( module );
}
}
}
}
} );
}
} );
app.activate();
Module module = app.findModule( "Layer 1", "Module 1" );
module.injectTo( this );
UnitOfWork unitOfWork = uowf.newUnitOfWork();
try