public interface LayerAssembly
ApplicationAssembly.layer(String)
.Modifier and Type | Method and Description |
---|---|
ApplicationAssembly |
application() |
EntityDeclaration |
entities(Specification<? super EntityAssembly> specification)
Given a Specification for EntityAssembly's, returns a EntityDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
ImportedServiceDeclaration |
importedServices(Specification<? super ImportedServiceAssembly> specification)
Given a Specification for ImportedServiceAssembly's, returns a ImportedServiceDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
ModuleAssembly |
module(String name)
Get an assembly for a particular Module.
|
String |
name() |
ObjectDeclaration |
objects(Specification<? super ObjectAssembly> specification)
Given a Specification for ObjectAssembly's, returns a ObjectDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
ServiceDeclaration |
services(Specification<? super ServiceAssembly> specification)
Given a Specification for ServiceAssembly's, returns a ServiceDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
LayerAssembly |
setMetaInfo(Object info) |
LayerAssembly |
setName(String name) |
TransientDeclaration |
transients(Specification<? super TransientAssembly> specification)
Given a Specification for TransientAssembly's, returns a TransientDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
LayerAssembly |
uses(LayerAssembly... layerAssembly) |
ValueDeclaration |
values(Specification<? super ValueAssembly> specification)
Given a Specification for ValueAssembly's, returns a ValueDeclaration that can
be used to work with all of the assemblies in this Layer matched by the specification.
|
<ThrowableType extends Throwable> |
visit(AssemblyVisitor<ThrowableType> visitor) |
LayerAssembly |
withActivators(Class<? extends Activator<Layer>>... activators)
Set the layer activators.
|
ModuleAssembly module(String name)
name
- The name of the Module to retrieve or create.ApplicationAssembly application()
String name()
LayerAssembly setName(String name)
LayerAssembly setMetaInfo(Object info)
LayerAssembly uses(LayerAssembly... layerAssembly)
LayerAssembly withActivators(Class<? extends Activator<Layer>>... activators)
activators
- the layer activators<ThrowableType extends Throwable> void visit(AssemblyVisitor<ThrowableType> visitor) throws ThrowableType extends Throwable
ThrowableType extends Throwable
EntityDeclaration entities(Specification<? super EntityAssembly> specification)
specification
- The Specification that specifies the EntityComposite types of interest.ServiceDeclaration services(Specification<? super ServiceAssembly> specification)
specification
- The Specification that specifies the ServiceComposite types of interest.TransientDeclaration transients(Specification<? super TransientAssembly> specification)
specification
- The Specification that specifies the TransientComposite types of interest.ValueDeclaration values(Specification<? super ValueAssembly> specification)
specification
- The Specification that specifies the ValueComposite types of interest.ObjectDeclaration objects(Specification<? super ObjectAssembly> specification)
specification
- The Specification that specifies the Object types of interest.ImportedServiceDeclaration importedServices(Specification<? super ImportedServiceAssembly> specification)
specification
- The Specification that specifies the Imported Service types of interest.