Service Descriptor

Attributes

Attribute Required Description
type yes Declaration of an interface classname.
Attribute Required Description
version no Declaration of an service version.

Nested Elements

Element Occurance Description
attributes 0..1 A set of attribute declarations.

Description

The org.apache.avalon.meta.info.ServiceDescriptor class describes a service delivery capability. It contains a reference to ServiceDefinition. Service delivery capability represent the value-proposition that the component type offers to its clients. Client typically include other component that have declared dependencies on the type of service referenced by the ServiceDescriptor. Services supporting dependency requirements are exposed to clients though a ServiceManager (or ComponentManager). For dependent services, the client will typically invoke the lookup operation against the supplied service manager, passing a lookup key to the supplied manager. The object retured is the service (or a proxy that isolates the component from the offered service).

Example XML

<service type="org.apache.SimpleService" version="3.2"/>