API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.annotation. Resource View Source
Author(s)
Since
Common Annotations 1.0
Version
Serial
Description
@Target (value={TYPE, FIELD, METHOD})
@Retention (value=RUNTIME)
public annotation Resource
  The Resource annotation marks a resource that is needed by the application.
See also:   
Elements
authenticationType = CONTAINER
  The authentication type to use for this resource.
description = ""
  Description of this resource.
mappedName = ""
  A product specific name that this resource should be mapped to.
name = ""
  The JNDI name of the resource.
shareable = true
  Indicates whether this resource can be shared between this component and other components.
type = java.lang.Object.class
  The Java type of the resource.
Nested Classes
  Resource.AuthenticationType
The two possible authentication types for a resource.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar