Bundle Activator Wizard: Services Page
This page of the wizard gathers information related to the services that
the bundle will import from the OSGi framework, and services that the
bundle will export to the OSGi framework.
-
Imported Services: Services that will be imported by the bundle
are listed here. Click the Add... button to add a new service,
click the Edit... button to edit an existing selected service,
and click the Remove button to remove one or more selected
services.
-
Filtered: Check this column if you wish to provide an LDAP
filter that will be used at runtime to select a service with
particular registered properties.
-
Optional: Check this column if the imported service should
be considered optional. Optional services are more complicated
to work with and are rarely needed.
-
Exported Services: Services that will be exported by the bundle
are listed here. Click the Add... button to add a new service,
click the Edit... button to edit an existing selected service,
and click the Remove button to remove one or more selected
services. Optionally click the Class... button to choose an
Implementation Class for the service.
-
Field: Check this column if you wish the service to be stored
in an instance field of the bundle activator. Under most
circustances this is not necessary, although it can be useful for
performing custom behavior when the service is unregistered.
-
Properties: Check this column the service should be
registered with the OSGi framework with properties. Properties are
a useful way of distinguishing one implementation of a service from
another.
-
Proxy: Check this column if the exported service should be
registered with the OSGi framework as a proxy. Proxy services are
useful when you wish to delay the creation of the service until it
is used for the first time. Other uses of proxy services includes
wrapping pre- and post- invocation behavior around service APIs.
-
Edit Type Scope: When the Add... button is clicked only
interfaces visible to the project are available by default. This
ensures that the code generated by the wizard will compile without
error. The Edit Type Scope... button allows you to adjust the
available types to include classes as well as interfaces, and types
visible to the entire workspace.
Describing imported
and exported services using classes is not recommended.
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.