org.qi4j.bootstrap
Interface Assembler

All Known Implementing Classes:
AbstractAnyQueryTest, AbstractComplexQueryTest, AbstractEntityFinderTest, AbstractEntityStoreTest, AbstractNamedQueryTest, AbstractQi4jScenarioTest, AbstractQi4jTest, AbstractQueryTest, AbstractSQLAssembler, ActionConfiguration, ApplicationName, AssemblerCollection, CodebehindAssembler, CxfAssembler, DataSourceAssembler, DataSourceAssembler, DerbySQLEntityStoreAssembler, EhCacheAssembler, EntityTestAssembler, FileEntityStoreAssembler, HazelcastEntityStoreAssembler, JdbmEntityStoreAssembler, JettyServiceAssembler, JMXAssembler, LayerName, LoggingAssembler, ModuleName, MySQLEntityStoreAssembler, PermissionsDomainAssembler, PersistingSequencingAssembler, PostgreSQLAssembler, PostgreSQLEntityStoreAssembler, PreferenceEntityStoreAssembler, RdfHttpStoreAssembler, RdfMemoryStoreAssembler, RdfNativeSesameStoreAssembler, RdfRdbmsSesameStoreAssembler, RestAssembler, SchedulerAssembler, SecureHashDomainAssembler, ShiroAssembler, SingletonAssembler, SolrAssembler, SpringImporterAssembler, SQLIndexingAssembler, Struts2PluginAssembler, TracingAssembler, TransientSequencingAssembler, UuidServiceAssembler, VoldemortAssembler, X509DomainAssembler

public interface Assembler

ModuleAssemblies are configured by Assemblers. This is the interface you would implement in order to provide all configuration and additional metainfo that is needed to instantiate a Qi4j application.


Method Summary
 void assemble(ModuleAssembly module)
          Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
 

Method Detail

assemble

void assemble(ModuleAssembly module)
              throws AssemblyException
Assemblers receive a callback to the ModuleAssembly they are supposed to configure. They can use this to register objects, composites, services etc. and the additional metadata that may exist for these artifacts.

An Assembler may create new Modules by calling ModuleAssembly.layer() and then LayerAssembly.module(String) (String)}. This allows an Assembler to bootstrap an entire Layer with more Modules.

Parameters:
module - the Module to assemble
Throws:
AssemblyException - thrown if the assembler tries to do something illegal