Package dev.getelements.elements.sdk.annotation
package dev.getelements.elements.sdk.annotation
The SDK Annotations in this package govern the visibility and services defined within an
Element
. Where an annotation specifies the Target
as ElementType.PACKAGE
, it must appear on the "package-info" class, or else the loader
will ignore the pacakge-level annotations. This is mostly motivated by performance and convenience of the loader
code.-
ClassDescriptionAnnotates a static final non-null field.Defines a
Element
.Annotates a method capable of receiving an instance ofEvent
.Repeatable
type forElementEventConsumer
.Used for documentation and reporting.Repeatable
type forElementEventProducer
.Instructs the ElementClassLoader
to copy the annotated from its parentClassLoader
and load into theClassLoader
for theElement
running within it.Specifies a java package to include in the element scanning process.Indicates a type or all types within a package are to be considered public and exposed to all other elements.Indicates a type or all types within a package are to be considered public and exposed to all other elements.Defines a service provided by the element.Exports the target type making it available in theServiceLocator
methods.Repeatable
type forElementServiceExport
.Specifies an implementation of a service.A marker class used as a placeholder to indicate that there is no specified implementation.Repeatable
type forElementService
.