org.apache.aries.application.modelling.impl
Class ExportedServiceImpl

java.lang.Object
  extended by org.apache.aries.application.modelling.impl.ExportedServiceImpl
All Implemented Interfaces:
Comparable<WrappedServiceMetadata>, ExportedService, Provider, WrappedServiceMetadata

public class ExportedServiceImpl
extends Object
implements ExportedService

A service exported by a bundle. Provides an entry to DEPLOYMENT.MF


Constructor Summary
ExportedServiceImpl(String name, int ranking, Collection<String> ifaces, Map<String,Object> serviceProperties)
          Constructor.
ExportedServiceImpl(String ifaceName, Map<String,String> attrs)
          Deprecated. 
 
Method Summary
 int compareTo(WrappedServiceMetadata o)
           
 boolean equals(Object o)
           
 Map<String,Object> getAttributes()
           
 Collection<String> getInterfaces()
           
 String getName()
           
 int getRanking()
           
 Map<String,Object> getServiceProperties()
           
 ResourceType getType()
           
 int hashCode()
           
 boolean identicalOrDiffersOnlyByName(WrappedServiceMetadata wsmi)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExportedServiceImpl

public ExportedServiceImpl(String name,
                           int ranking,
                           Collection<String> ifaces,
                           Map<String,Object> serviceProperties)
Constructor.

Parameters:
name - "" will be changed to null
ranking - Service ranking
ifaces - Interfaces offered by the service
serviceProperties - Service properties. We expect that osgi.service.blueprint.compname has been set if possible

ExportedServiceImpl

@Deprecated
public ExportedServiceImpl(String ifaceName,
                                      Map<String,String> attrs)
Deprecated. 

This constructor is for building ExportedServices from Export-Service manifest headers, which are deprecated in OSGi.

Parameters:
ifaceName -
attrs -
Method Detail

getAttributes

public Map<String,Object> getAttributes()
Specified by:
getAttributes in interface Provider

getType

public ResourceType getType()
Specified by:
getType in interface Provider

getInterfaces

public Collection<String> getInterfaces()
Specified by:
getInterfaces in interface WrappedServiceMetadata

getName

public String getName()
Specified by:
getName in interface WrappedServiceMetadata

getRanking

public int getRanking()
Specified by:
getRanking in interface WrappedServiceMetadata

getServiceProperties

public Map<String,Object> getServiceProperties()
Specified by:
getServiceProperties in interface WrappedServiceMetadata

compareTo

public int compareTo(WrappedServiceMetadata o)
Specified by:
compareTo in interface Comparable<WrappedServiceMetadata>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

identicalOrDiffersOnlyByName

public boolean identicalOrDiffersOnlyByName(WrappedServiceMetadata wsmi)
Specified by:
identicalOrDiffersOnlyByName in interface WrappedServiceMetadata


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