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.

Version:
$Revision: 57283 $
Author:
Bill Burke

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

name

public abstract String name
Default:
""

type

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

mappedName

public abstract String mappedName
Default:
""


Copyright © 2008 JBoss Inc.. All Rights Reserved.