HK2 modules primarily interact with HK2 by using these annotations.
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | Contract
This annotation is used by HK2 during automatic class analysis to indicate that a class or interface should be included in the list of contracts for a service |
| public @interface | ContractsProvided
An explicit list of contracts provided. |
| public @interface | InhabitantAnnotation
Meta-annotation indicating that the annotation designates
a resident service of a |
| public @interface | Optional
Marker annotation indicating that an instance variable or method marked with |
| public @interface | Service
Annotation placed on classes that are to be automatically added
to an hk2 |