javax.annotation
Annotation Type Resource
@Target(value={TYPE,FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Resource
The Resource annotation is used to express a dependency on an external
resource in the bean’s environment. The name property refers to the name by
which the resource is to be known in the environment; the type is the
resource manager connection factory type. The authenticationType member
specifies whether the container or bean is to perform authentication. The
shareable member refers to the sharability of resource manager connections.
name
public abstract java.lang.String name
- Default:
- ""
type
public abstract java.lang.Class type
- Default:
- java.lang.Object.class
authenticationType
public abstract Resource.AuthenticationType authenticationType
- Default:
- CONTAINER
shareable
public abstract boolean shareable
- Default:
- true
description
public abstract java.lang.String description
- Default:
- ""
mappedName
public abstract java.lang.String mappedName
- Default:
- ""