org.qi4j.bootstrap
Interface ModuleAssembly


public interface ModuleAssembly

The ModuleAssembly is used to register any information about what the module should contain, such as composites, entities and services. Use the methods and the fluent API's to declare how the module should be constructed.


Method Summary
 EntityDeclaration addEntities(java.lang.Class<? extends EntityComposite>... compositeTypes)
           
 ObjectDeclaration addObjects(java.lang.Class... objectTypes)
           
 ServiceDeclaration addServices(java.lang.Class<? extends ServiceComposite>... serviceTypes)
           
 TransientDeclaration addTransients(java.lang.Class<? extends TransientComposite>... compositeTypes)
           
 ValueDeclaration addValues(java.lang.Class<? extends ValueComposite>... compositeTypes)
           
<T> MixinDeclaration<T>
forMixin(java.lang.Class<T> mixinType)
           
 ImportedServiceDeclaration importServices(java.lang.Class... serviceTypes)
           
 LayerAssembly layerAssembly()
           
 java.lang.String name()
           
 ModuleAssembly setName(java.lang.String name)
           
<ThrowableType extends java.lang.Throwable>
void
visit(AssemblyVisitor<ThrowableType> visitor)
           
 

Method Detail

layerAssembly

LayerAssembly layerAssembly()

setName

ModuleAssembly setName(java.lang.String name)

name

java.lang.String name()

addTransients

TransientDeclaration addTransients(java.lang.Class<? extends TransientComposite>... compositeTypes)
                                   throws AssemblyException
Throws:
AssemblyException

addValues

ValueDeclaration addValues(java.lang.Class<? extends ValueComposite>... compositeTypes)
                           throws AssemblyException
Throws:
AssemblyException

addEntities

EntityDeclaration addEntities(java.lang.Class<? extends EntityComposite>... compositeTypes)
                              throws AssemblyException
Throws:
AssemblyException

addObjects

ObjectDeclaration addObjects(java.lang.Class... objectTypes)
                             throws AssemblyException
Throws:
AssemblyException

addServices

ServiceDeclaration addServices(java.lang.Class<? extends ServiceComposite>... serviceTypes)
                               throws AssemblyException
Throws:
AssemblyException

importServices

ImportedServiceDeclaration importServices(java.lang.Class... serviceTypes)
                                          throws AssemblyException
Throws:
AssemblyException

forMixin

<T> MixinDeclaration<T> forMixin(java.lang.Class<T> mixinType)

visit

<ThrowableType extends java.lang.Throwable> void visit(AssemblyVisitor<ThrowableType> visitor)
           throws ThrowableType extends java.lang.Throwable
Throws:
ThrowableType extends java.lang.Throwable


Copyright © 2007-2010. All Rights Reserved.