Resource (Common Annotations 1.1 API Documentation - Apache Tomcat 7.0.104)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Common Annotations 1.1 - Apache Tomcat 7.0.104
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## javax.annotation
Annotation Type Resource

    @Target(value={TYPE,METHOD,FIELD})
    @Retention(value=RUNTIME)
    public @interface Resource

Since:
  Common Annotations 1.0

Optional Element Summary
`Resource.AuthenticationType` | `authenticationType`
`java.lang.String` | `description`
`java.lang.String` | `lookup`
`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 Resource.AuthenticationType authenticationType

  Default:
    javax.annotation.Resource.AuthenticationType.CONTAINER

### shareable

    public abstract boolean shareable

  Default:
    true

### description

    public abstract java.lang.String description

  Default:
    ""

### mappedName

    public abstract java.lang.String mappedName

  Default:
    ""

### lookup

    public abstract java.lang.String lookup

  Returns:
    The name of the entry, if any, to use for this resource
  Since:
    Common Annotations 1.1
  Default:
    ""

Overview | Package | Class | Tree | Deprecated | Index | Help
| Common Annotations 1.1 - Apache Tomcat 7.0.104
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.