Package jakarta.annotation
Annotation Type Resource
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(Resources.class) public @interface ResourceIndicates a resource required by the application. Annotated classes will be used as resources. Annotated fields and/or methods will have resources injected.- Since:
- Common Annotations 1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Resource.AuthenticationTypeauthenticationTypejava.lang.Stringdescriptionjava.lang.Stringlookupjava.lang.StringmappedNamejava.lang.Stringnamebooleanshareablejava.lang.Class<?>typeUses generics since Common Annotations 1.2.
-
-
-
-
authenticationType
Resource.AuthenticationType authenticationType
- Returns:
- the AuthenticationType of the resource default CONTAINER
- Default:
- jakarta.annotation.Resource.AuthenticationType.CONTAINER
-
-