|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayerAssembly
Fluid API for declaring a layer in an application. This is obtained by calling ApplicationAssembly.layer(String)
.
Method Summary | ||
---|---|---|
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(java.lang.String name)
Get an assembly for a particular Module. |
|
java.lang.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(java.lang.Object info)
|
|
LayerAssembly |
setName(java.lang.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. |
|
|
visit(AssemblyVisitor<ThrowableType> visitor)
|
|
LayerAssembly |
withActivators(java.lang.Class<? extends Activator<Layer>>... activators)
Set the layer activators. |
Method Detail |
---|
ModuleAssembly module(java.lang.String name)
name
- The name of the Module to retrieve or create.
ApplicationAssembly application()
java.lang.String name()
LayerAssembly setName(java.lang.String name)
LayerAssembly setMetaInfo(java.lang.Object info)
LayerAssembly uses(LayerAssembly... layerAssembly)
LayerAssembly withActivators(java.lang.Class<? extends Activator<Layer>>... activators)
activators
- the layer activators
<ThrowableType extends java.lang.Throwable> void visit(AssemblyVisitor<ThrowableType> visitor) throws ThrowableType extends java.lang.Throwable
ThrowableType extends java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |