org.oasisopen.sca.annotation
Annotation Type Context


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

The @Context annotation is used to denote a Java class field or a setter method that is used to inject a composite context for the component. The type of context to be injected is defined by the type of the Java class field or type of the setter method input argument; the type is either ComponentContext or RequestContext. The @Context annotation has no attributes.