|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.bootstrap.AssemblerCollection
public final class AssemblerCollection
Assembler that delegates to a collection of Assemblers.
Makes it easy to collect and compose assemblers into bigger assemblers.
Constructor Summary | |
---|---|
AssemblerCollection(Assembler... assemblers)
|
|
AssemblerCollection(java.lang.Class<? extends Assembler>... assemblyClasses)
|
|
AssemblerCollection(java.util.Collection<Assembler> assemblers)
|
Method Summary | |
---|---|
void |
assemble(ModuleAssembly module)
Assemblers receive a callback to the ModuleAssembly they are supposed to configure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssemblerCollection(Assembler... assemblers)
public AssemblerCollection(java.lang.Class<? extends Assembler>... assemblyClasses) throws AssemblyException
AssemblyException
public AssemblerCollection(java.util.Collection<Assembler> assemblers)
Method Detail |
---|
public void assemble(ModuleAssembly module) throws AssemblyException
Assembler
ModuleAssembly.layer()
and
then LayerAssembly.module(String)
(String)}.
This allows an Assembler to bootstrap an entire Layer with
more Modules.
assemble
in interface Assembler
module
- the Module to assemble
AssemblyException
- thrown if the assembler tries to do something illegal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |