org.apache.aries.application.modelling
Interface WrappedServiceMetadata

All Superinterfaces:
Comparable<WrappedServiceMetadata>
All Known Subinterfaces:
ExportedService

public interface WrappedServiceMetadata
extends Comparable<WrappedServiceMetadata>

A proxy for org.osgi.service.blueprint.reflect.ServiceMetadata, which we cannot pass to clients in the outer framework. We'll just expose the methods that we know we're going to need.


Method Summary
 Collection<String> getInterfaces()
          Get the interfaces implemented by the service
 String getName()
          Get the service name.
 int getRanking()
          Get the service ranking
 Map<String,Object> getServiceProperties()
          Get the properties of the associated blueprint service
 boolean identicalOrDiffersOnlyByName(WrappedServiceMetadata w)
          Sometimes we want to know if two services are identical except for their names
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getServiceProperties

Map<String,Object> getServiceProperties()
Get the properties of the associated blueprint service

Returns:
Service properties. The values in the Map will be either String or String[].

getInterfaces

Collection<String> getInterfaces()
Get the interfaces implemented by the service

Returns:
List of interfaces

getName

String getName()
Get the service name. This we hope will be short, human-readable, and unique.

Returns:
Service name

getRanking

int getRanking()
Get the service ranking

Returns:
ranking

identicalOrDiffersOnlyByName

boolean identicalOrDiffersOnlyByName(WrappedServiceMetadata w)
Sometimes we want to know if two services are identical except for their names

Parameters:
w - A wrapped service metadata for comparison.
Returns:
true if the two services are indistinguishable (in the OSGi service registry) - this will be true if only their names are different, and their interfaces and service properties the same.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.