org.apache.aries.blueprint.reflect
Class ServiceMetadataImpl
java.lang.Object
org.apache.aries.blueprint.reflect.ComponentMetadataImpl
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$
ServiceMetadataImpl
public ServiceMetadataImpl()
ServiceMetadataImpl
public ServiceMetadataImpl(ServiceMetadata source)
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.