Modules
are layer which transforms User land code to Ecotone's configuration.
In most of the cases they look for code that is annotated with given Attribute, to register Messaging Concepts. AnnotationModule
and be annotated with #[ModuleAnnotation]
.create
method.
In this method you may use of AnnotationFinder
to fetch for all the classes that you're interested in.extension objects
should be delivered to prepare method.
Those objects are objects created by in user land code by Service Configuration.
getModuleExtensions method:prepare
method on each of Modules.
The Configuration that is registered as a result is cached and is reused between executions.