public abstract class SingletonAssembler extends Object implements Assembler
Assembler.assemble(ModuleAssembly)
method.
Once the SingletonAssembler is instantiated it will have created and activated
an Application which can be accessed from application()
.
You can also easily access any resources specific for the single Module, such as the TransientBuilderFactory.Constructor and Description |
---|
SingletonAssembler()
Creates a Zest Runtime instance containing one Layer with one Module.
|
Modifier and Type | Method and Description |
---|---|
org.qi4j.api.structure.Application |
application() |
protected void |
beforeActivation(org.qi4j.api.structure.Application application) |
org.qi4j.api.structure.Module |
module() |
org.qi4j.api.Qi4j |
runtime() |
public SingletonAssembler() throws AssemblyException, org.qi4j.api.activation.ActivationException
AssemblyException
- Either if the model can not be created from the disk, or some inconsistency in
the programming model makes it impossible to create it.org.qi4j.api.activation.ActivationException
- If the automatic activate()
method is throwing this Exception..