Package jakarta.annotation
Annotation Type Resource
-
@Target({TYPE,FIELD,METHOD}) @Retention(RUNTIME) @Repeatable(Resources.class) public @interface Resource
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Resource.AuthenticationTypeauthenticationTypeStringdescriptionStringlookupStringmappedNameStringnamebooleanshareableClass<?>type
-
-
-
Element Detail
-
name
String name
- Default:
- ""
-
-
-
lookup
String lookup
- Default:
- ""
-
-
-
type
Class<?> type
- Default:
- java.lang.Object.class
-
-
-
authenticationType
Resource.AuthenticationType authenticationType
- Default:
- jakarta.annotation.Resource.AuthenticationType.CONTAINER
-
-
-
mappedName
String mappedName
- Default:
- ""
-
-
-
description
String description
- Default:
- ""
-
-