Understanding Implementing Handlers Using Component Interfaces

This section provides an overview of implementing handlers using component interfaces.

You can only use a component interface for On Notify, On Request and On Response handler types.

Component interfaces can be used as handlers for asynchronous and synchronous service operations. Asynchronous service operations should only be used with component interface methods that do not require a response, such as Update or Insert.

You must expose a component interface as a service before you can implement any of the component interface methods as handler actions.

The standard methods for a component interface (such as Find, Get, Save, Update, and so on) are automatically available for a handler. However, if you want to use a user-defined method, you must include the keyword Doc as part of the signature.

The process for implementing a handler using a component interface is:

  1. Expose the component interface as a service.

    See Selecting Component Interfaces to Expose as Services.

  2. Add a handler to the service operation.

    See Adding a Handler to a Service Operation.

  3. Specify general handler details.

    See Specifying General Handler Details.

  4. Specify component interface handler implementation details.

    See Specifying Component Interface Handler Implementation Details.