public class JettyServiceAssembler extends Assemblers.VisibilityIdentityConfig<JettyServiceAssembler>
Modifier and Type | Field and Description |
---|---|
protected String |
serverIdentity |
protected ModuleAssembly |
serverModule |
protected Visibility |
serverVisibility |
Constructor and Description |
---|
JettyServiceAssembler() |
Modifier and Type | Method and Description |
---|---|
void |
assemble(ModuleAssembly module)
Assemblers receive a callback to the ModuleAssembly
they are supposed to configure.
|
protected void |
assembleServer(ModuleAssembly module) |
protected Class<? extends JettyConfiguration> |
configurationEntity() |
protected Class<? extends JettyService> |
httpService() |
JettyServiceAssembler |
serverIdentifiedBy(String serverIdentity) |
JettyServiceAssembler |
withServer(ModuleAssembly serverModule,
Visibility serverVisibility) |
configModule, configVisibility, hasConfig, hasIdentity, identifiedBy, identity, visibility, visibleIn, withConfig
protected ModuleAssembly serverModule
protected Visibility serverVisibility
protected String serverIdentity
public JettyServiceAssembler withServer(ModuleAssembly serverModule, Visibility serverVisibility)
serverModule
- Defaults to assembled moduleserverVisibility
- Defaults to Visibility.module
public JettyServiceAssembler serverIdentifiedBy(String serverIdentity)
public final void assemble(ModuleAssembly module) throws AssemblyException
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.
module
- the Module to assembleAssemblyException
- thrown if the assembler tries to do something illegalprotected final void assembleServer(ModuleAssembly module)
protected Class<? extends JettyConfiguration> configurationEntity()
protected Class<? extends JettyService> httpService()