Module aermicioi.aedi.configurer.annotation.annotation

This module implements annotation based configuration of containers.

Functions

NameDescription
allocator(allocator) Use allocator to allocate component.
callback(dg, args) Annotation that specifies a delegate to be used to configure component somehow.
callbackDestructor(dg, args) Use callback stored in annotation to destroy a component of type T
constructor(args) Annotation used to mark a constructor to be used for component instantiation.
contained(id) When objects are registered into a component container, this annotation marks in which sub-container it is required to store.
destructorMethod() Use method from instance of type T to destroy a component of type Z
fact(dg, args) Annotation that specifies a delegate to be used to instantiate component.
qualifier(id) An annotation used to provide custom identity for an object in container.
qualifier() An annotation used to provide custom identity for an object in container by some interface.
setter(args) Annotation used to mark a member to be called or set (in case of fields), with args passed to setter.
value(value) Construct the instance using value provided in annotation

Structs

NameDescription
AllocatorAnnotation Use allocator to allocate component.
AutowiredAnnotation Annotation used to mark constructor or method for auto wiring.
CallbackConfigurerAnnotation Annotation that specifies a delegate to be used to configure component somehow.
CallbackDestructor Use callback stored in annotation to destroy a component of type T
CallbackFactoryAnnotation Annotation that specifies a delegate to be used to instantiate component.
ComponentAnnotation Annotation used to denote a component that should be stored into an container.
ConstructorAnnotation Annotation used to mark a constructor to be used for component instantiation.
ContainedAnnotation When objects are registered into a component container, this annotation marks in which sub-container it is required to store.
DestructorMethod Use method from instance of type T to destroy a component of type Z
QualifierAnnotation An annotation used to provide custom identity for an object in container.
SetterAnnotation Annotation used to mark a member to be called or set (in case of fields), with args passed to setter.
ValueAnnotation Construct the instance using value provided in annotation

Manifest constants

NameTypeDescription
isAllocatorAnnotation Check if T is instance of AllocatorAnnotation
isAutowiredAnnotation Check if T is instance of AutowiredAnnotation
isCallbackConfigurerAnnotation Check if T is instance of CallbackConfigurerAnnotation
isCallbackDestructor Check if T is instance of CallbackDestructor
isCallbackFactoryAnnotation Check if T is instance of CallbackFactoryAnnotation
isComponentAnnotation Check if T is instance of ComponentAnnotation
isConstructorAnnotation Check if T is instance of ConstructorAnnotation
isContainedAnnotation Check if T is instance of ContainedAnnotation
isDestructorMethod Check if T is instance of DestructorMethod
isQualifierAnnotation Check if T is instance of QualifierAnnotation
isSetterAnnotation Check if T is instance of SetterAnnotation
isValueAnnotation Check if T is instance of ValueAnnotation

Aliases

NameTypeDescription
autowired AutowiredAnnotation Annotation used to mark constructor or method for auto wiring.
component ComponentAnnotation Annotation used to denote a component that should be stored into an container.