public interface EntityDeclaration
ModuleAssembly.entities(Class[])
.Modifier and Type | Method and Description |
---|---|
EntityDeclaration |
setMetaInfo(Object info)
Set additional metainfo for this entity declaration.
|
EntityDeclaration |
visibleIn(Visibility visibility)
Set visibility for declared entities.
|
EntityDeclaration |
withConcerns(Class<?>... concerns)
Declare additional concerns for these entities.
|
EntityDeclaration |
withMixins(Class<?>... mixins)
Declare additional mixins for these entities.
|
EntityDeclaration |
withSideEffects(Class<?>... sideEffects)
Declare additional side-effects for these entitites.
|
EntityDeclaration |
withTypes(Class<?>... types)
Declare additional interfaces for these declared interfaces.
|
EntityDeclaration setMetaInfo(Object info)
info
- metainfo that can be retrieved from the EntityDescriptor.EntityDeclaration visibleIn(Visibility visibility)
visibility
- The Visibility
that this EntityComposite will have.EntityDeclaration withConcerns(Class<?>... concerns)
concerns
- The concerns that are to be added to the EntityComposite beyond the statically declared ones.EntityDeclaration withSideEffects(Class<?>... sideEffects)
sideEffects
- The sideeffects that are to be added to the EntityComposite beyond the statically declared ones.EntityDeclaration withMixins(Class<?>... mixins)
This can be useful to override any default mixins from the entity interface.
mixins
- The mixins that are to be added to the EntityComposite beyond the statically declared ones.EntityDeclaration withTypes(Class<?>... types)
This can be useful to add types that the entities should implement, but which you do not want to include in the entity interface itself.
types
- list of interfaces to add