org.apache.aries.blueprint.reflect
Class ServiceMetadataImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.ComponentMetadataImpl
      extended by org.apache.aries.blueprint.reflect.ServiceMetadataImpl
All Implemented Interfaces:
MutableComponentMetadata, MutableServiceMetadata, ComponentMetadata, Metadata, NonNullMetadata, ServiceMetadata

public class ServiceMetadataImpl
extends ComponentMetadataImpl
implements MutableServiceMetadata

Implementation of ServiceMetadata

Version:
$Rev$, $Date$

Field Summary
 
Fields inherited from class org.apache.aries.blueprint.reflect.ComponentMetadataImpl
activation, dependsOn, id
 
Fields inherited from interface org.osgi.service.blueprint.reflect.ServiceMetadata
AUTO_EXPORT_ALL_CLASSES, AUTO_EXPORT_CLASS_HIERARCHY, AUTO_EXPORT_DISABLED, AUTO_EXPORT_INTERFACES
 
Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
ACTIVATION_EAGER, ACTIVATION_LAZY
 
Constructor Summary
ServiceMetadataImpl()
           
ServiceMetadataImpl(ServiceMetadata source)
           
 
Method Summary
 void addInterface(String interfaceName)
           
 void addRegistrationListener(RegistrationListener registrationListenerMetadata)
           
 RegistrationListener addRegistrationListener(Target listenerComponent, String registrationMethodName, String unregistrationMethodName)
           
 void addServiceProperty(MapEntry serviceProperty)
           
 MapEntry addServiceProperty(NonNullMetadata key, Metadata value)
           
 int getAutoExport()
           
 List<String> getInterfaces()
           
 int getRanking()
           
 Collection<RegistrationListener> getRegistrationListeners()
           
 Target getServiceComponent()
           
 List<MapEntry> getServiceProperties()
           
 void removeInterface(String interfaceName)
           
 void removeRegistrationListener(RegistrationListener listener)
           
 void removeServiceProperty(MapEntry serviceProperty)
           
 void setAutoExport(int autoExport)
           
 void setInterfaceNames(List<String> interfaceNames)
           
 void setRanking(int ranking)
           
 void setRegistrationListeners(Collection<RegistrationListener> registrationListeners)
           
 void setServiceComponent(Target exportedComponent)
           
 void setServiceProperties(List<MapEntry> serviceProperties)
           
 String toString()
           
 
Methods inherited from class org.apache.aries.blueprint.reflect.ComponentMetadataImpl
addDependsOn, getActivation, getDependsOn, getId, removeDependsOn, setActivation, setDependsOn, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.aries.blueprint.mutable.MutableComponentMetadata
addDependsOn, removeDependsOn, setActivation, setDependsOn, setId
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
getActivation, getDependsOn, getId
 

Constructor Detail

ServiceMetadataImpl

public ServiceMetadataImpl()

ServiceMetadataImpl

public ServiceMetadataImpl(ServiceMetadata source)
Method Detail

getServiceComponent

public Target getServiceComponent()
Specified by:
getServiceComponent in interface ServiceMetadata

setServiceComponent

public void setServiceComponent(Target exportedComponent)
Specified by:
setServiceComponent in interface MutableServiceMetadata

getInterfaces

public List<String> getInterfaces()
Specified by:
getInterfaces in interface ServiceMetadata

setInterfaceNames

public void setInterfaceNames(List<String> interfaceNames)

addInterface

public void addInterface(String interfaceName)
Specified by:
addInterface in interface MutableServiceMetadata

removeInterface

public void removeInterface(String interfaceName)
Specified by:
removeInterface in interface MutableServiceMetadata

getAutoExport

public int getAutoExport()
Specified by:
getAutoExport in interface ServiceMetadata

setAutoExport

public void setAutoExport(int autoExport)
Specified by:
setAutoExport in interface MutableServiceMetadata

getServiceProperties

public List<MapEntry> getServiceProperties()
Specified by:
getServiceProperties in interface ServiceMetadata

setServiceProperties

public void setServiceProperties(List<MapEntry> serviceProperties)

addServiceProperty

public void addServiceProperty(MapEntry serviceProperty)
Specified by:
addServiceProperty in interface MutableServiceMetadata

addServiceProperty

public MapEntry addServiceProperty(NonNullMetadata key,
                                   Metadata value)
Specified by:
addServiceProperty in interface MutableServiceMetadata

removeServiceProperty

public void removeServiceProperty(MapEntry serviceProperty)
Specified by:
removeServiceProperty in interface MutableServiceMetadata

getRanking

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

setRanking

public void setRanking(int ranking)
Specified by:
setRanking in interface MutableServiceMetadata

getRegistrationListeners

public Collection<RegistrationListener> getRegistrationListeners()
Specified by:
getRegistrationListeners in interface ServiceMetadata

setRegistrationListeners

public void setRegistrationListeners(Collection<RegistrationListener> registrationListeners)

addRegistrationListener

public void addRegistrationListener(RegistrationListener registrationListenerMetadata)
Specified by:
addRegistrationListener in interface MutableServiceMetadata

addRegistrationListener

public RegistrationListener addRegistrationListener(Target listenerComponent,
                                                    String registrationMethodName,
                                                    String unregistrationMethodName)
Specified by:
addRegistrationListener in interface MutableServiceMetadata

removeRegistrationListener

public void removeRegistrationListener(RegistrationListener listener)
Specified by:
removeRegistrationListener in interface MutableServiceMetadata

toString

public String toString()
Overrides:
toString in class Object


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