2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.implementation.java.introspect.impl
Annotation Type Resource


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

Annotation used to indicate a resource should be provided to an implementation by the runtime.


Optional Element Summary
 java.lang.String mappedName
          Denotes the default name of the resource provided by the runtime environment.
 java.lang.String name
          Denotes the name of the resource declared by the implementation.
 boolean optional
          Denotes if the resource is optional
 

name

public abstract java.lang.String name
Denotes the name of the resource declared by the implementation.

Default:
""

optional

public abstract boolean optional
Denotes if the resource is optional

Default:
false

mappedName

public abstract java.lang.String mappedName
Denotes the default name of the resource provided by the runtime environment.

Default:
""