Package sting

Annotation Interface Injectable


Identify a component type that Sting can create by invoking the constructor. This annotation is a top-level Sting processor entrypoint.

The type must be concrete and should have a single package-access constructor. The constructor can accept zero or more services as arguments. Constructor parameters may be qualified with Named and can be explicitly annotated with Injector.Input; otherwise the compiler will treat the parameter as if it was annotated with a Injector.Input annotation with default values for all the elements.

When this annotation is present, Sting also actively processes Named, Typed, and Eager on the annotated type.