org.oasisopen.sca.annotation
Annotation Type Scope


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Scope

The @Scope annotation MUST only be used on a service's implementation class. It is an error to use this annotation on an interface.


Optional Element Summary
 java.lang.String value
          The name of the scope.
 

value

public abstract java.lang.String value
The name of the scope. For 'STATELESS' implementations, a different implementation instance can be used to service each request. Implementation instances can be newly created or be drawn from a pool of instances. SCA defines the following scope names, but others can be defined by particular Java-based implementation types: STATELESS COMPOSITE The default value is STATELESS.

Returns:
the name of the scope
Default:
"STATELESS"