Implementations of this class will be automatically detected and applied to all matching classes on startup.
Implementations of this class will be automatically detected and used to wire objects (to handle annotations placed on fields).
Used to access parts managed by the
Classes implementing this interface will be invoked, once the
Represents a collection, which always contains all registered parts for the given interface (PartCollection
Central class for collecting and injecting dependencies (which are called parts).
Classes provided by customizations can be annotated with this to replace classes provided as a standard class.
Registerwill be used to put parts (components) into the injector and
Partswill be used to retrieve (discover) those.
Note that all these annotations are not part of the micro kernel but already extensions to it (this is why it is a micro kernel). Therefore own handlers for custom annotations or patterns can be implemented and treated as first class citizens.
FieldAnnotationProcessorhas to be implemented. Those implementation will be picked up by Sirius during the start phase and therefore be automatically applied. All that is required is a file called component.marker in the classpath root of the respective code base to make these and other classes visible to Sirius.
Injectorclass can be used. If provides access to the
GlobalContextwhich contains all registered parts (components). Note that the GlobalContext can also be injected using a
Copyright © 2018. All rights reserved.