Service Example

Introduction

This example describes the usage of the Service framework within the SDK. It demonstrates how to create a Service and define Providers for that service as well as giving clients access to the Service.

References

Refer to the on-line Java documentation for the package org.eclipse.gmf.runtime.common.core.service for more information on general use and API specifics.

Description

This example plug-in, called org.eclipse.gmf.examples.runtime.common.service, creates a Widget Service and defines two Widget Providers. This plug-in also contributes an action which request Widgets from the Widget Service.

Please refer to the tutorial Service and Provider Tutorial for viewing the code samples within this example

Usage

Refer to this example if you need to:

  1. To create a Service which Providers to contribute to the Service via the Service extension point.
  2. Allow Providers to prioritize themselves so that results from the Service are deterministic.
  3. Allow one or more Providers to service a client request.



Copyright (c) 2000,2005 IBM Corporation and others. All Rights Reserved.