Annotation Type Custom
-
@Qualifier @Retention(RUNTIME) public @interface Custom
Qualifier annotationused to annotate HK2 injections and bindings for user custom providers. Providers are classes which implement one of the provider interfaces (for exampleMessage body reader interface).Custom providers are bound in the HK2 injection manager using
@Customannotation. Once bound, the custom providers can be injected using@Customqualifier annotation again.For example:
@Inject @Custom MessageBodyReader messageBodyReader;
- Author:
- Miroslav Fuksa, Marek Potociar
- See Also:
CustomAnnotationLiteral