@Target(value={PARAMETER,METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface InjectParam
When Jersey is used without IoC component provider support this annotation provides basic injection support of beans. References to beans may be obtained be they existing references to instances of resources or just beans that have JAX-RS/Jersey artifacts injected on them.
When Jersey is used with an IoC component provider, such as Guice or CDI,
this annotation may be used in conjunction with the Guice or JSR 330-based
@Inject
when references to beans are obtained as parameters of
resource methods, sub-resource methods or sub-resource locator methods.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value |
Copyright © 2016 Oracle Corporation. All Rights Reserved.