Constructor and Description |
---|
SpringImporterAssembler(org.springframework.context.ApplicationContext context)
Import all beans from the given ApplicationContext as services in Polygene,
using Module as Visibility.
|
SpringImporterAssembler(org.springframework.context.ApplicationContext context,
Visibility defaultVisibility)
Import all beans from the given ApplicationContext as services in Polygene,
using the specified Visibility level.
|
Modifier and Type | Method and Description |
---|---|
void |
assemble(ModuleAssembly module)
Assemblers receive a callback to the ModuleAssembly
they are supposed to configure.
|
public SpringImporterAssembler(org.springframework.context.ApplicationContext context)
context
- the Spring ApplicationContextpublic SpringImporterAssembler(org.springframework.context.ApplicationContext context, Visibility defaultVisibility)
context
- the Spring ApplicationContextdefaultVisibility
- the visibility level for the imported servicespublic void assemble(ModuleAssembly module)
Assembler
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.