org.glassfish.jersey.internal.inject
Annotation Type Custom


@Qualifier
@Retention(value=RUNTIME)
public @interface Custom

Qualifier annotation used to annotate HK2 injections and bindings for user custom providers. Providers are classes which implement one of the provider interfaces (for example Message body reader interface).

Custom providers are bound in the HK2 injection manager using @Custom annotation. Once bound, the custom providers can be injected using @Custom qualifier annotation again.

For example:

  @Inject
  @Custom
  MessageBodyReader messageBodyReader;
 

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)



Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.