javax.annotation
Annotation Type Resource


@Target(value={METHOD,TYPE,FIELD,PARAMETER})
@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.

Version:
$Revision: 1.3.2.6 $
Author:
Bill Burke

Optional Element Summary
 AuthenticationType authenticationType
           
 java.lang.String description
           
 java.lang.String mappedName
           
 java.lang.String name
           
 boolean shareable
           
 java.lang.Class type
           
 

name

public abstract java.lang.String name
Default:
""

type

public abstract java.lang.Class type
Default:
java.lang.Object.class

authenticationType

public abstract 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:
""