Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.bea.wli.jpd
Annotation Type Context

    @Retention(value=RUNTIME)
    @Target(value=FIELD)
    public @interface Context

The Context annotation type is used to annotate a field within a process class that refers to a contextual service. The process runtime will automatically initialize the field value to an appropriate provider of the requested service, or will throw a construction or deserialization error if no such provider is available. The following is a simple example: ``

     @ProcessDefinition
     public class MyControlImpl
     {
         @Context
         JpdContext myContext;
     }

This example declares a field named `myContext` that will automatically be initialized by the process runtime to refer to a provider of the `JpdContext` contextual service.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT