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, org.osgi.service.blueprint.reflect.ComponentMetadata, org.osgi.service.blueprint.reflect.Metadata, org.osgi.service.blueprint.reflect.NonNullMetadata, org.osgi.service.blueprint.reflect.ServiceMetadata
public class ServiceMetadataImpl
- extends ComponentMetadataImpl
- implements MutableServiceMetadata
Implementation of ServiceMetadata
- Version:
- $Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $
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 |
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
getActivation, getDependsOn, getId |
ServiceMetadataImpl
public ServiceMetadataImpl()
ServiceMetadataImpl
public ServiceMetadataImpl(org.osgi.service.blueprint.reflect.ServiceMetadata source)
getServiceComponent
public org.osgi.service.blueprint.reflect.Target getServiceComponent()
- Specified by:
getServiceComponent
in interface org.osgi.service.blueprint.reflect.ServiceMetadata
setServiceComponent
public void setServiceComponent(org.osgi.service.blueprint.reflect.Target exportedComponent)
- Specified by:
setServiceComponent
in interface MutableServiceMetadata
getInterfaces
public List<String> getInterfaces()
- Specified by:
getInterfaces
in interface org.osgi.service.blueprint.reflect.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 org.osgi.service.blueprint.reflect.ServiceMetadata
setAutoExport
public void setAutoExport(int autoExport)
- Specified by:
setAutoExport
in interface MutableServiceMetadata
getServiceProperties
public List<org.osgi.service.blueprint.reflect.MapEntry> getServiceProperties()
- Specified by:
getServiceProperties
in interface org.osgi.service.blueprint.reflect.ServiceMetadata
setServiceProperties
public void setServiceProperties(List<org.osgi.service.blueprint.reflect.MapEntry> serviceProperties)
addServiceProperty
public void addServiceProperty(org.osgi.service.blueprint.reflect.MapEntry serviceProperty)
- Specified by:
addServiceProperty
in interface MutableServiceMetadata
addServiceProperty
public org.osgi.service.blueprint.reflect.MapEntry addServiceProperty(org.osgi.service.blueprint.reflect.NonNullMetadata key,
org.osgi.service.blueprint.reflect.Metadata value)
- Specified by:
addServiceProperty
in interface MutableServiceMetadata
removeServiceProperty
public void removeServiceProperty(org.osgi.service.blueprint.reflect.MapEntry serviceProperty)
- Specified by:
removeServiceProperty
in interface MutableServiceMetadata
getRanking
public int getRanking()
- Specified by:
getRanking
in interface org.osgi.service.blueprint.reflect.ServiceMetadata
setRanking
public void setRanking(int ranking)
- Specified by:
setRanking
in interface MutableServiceMetadata
getRegistrationListeners
public Collection<org.osgi.service.blueprint.reflect.RegistrationListener> getRegistrationListeners()
- Specified by:
getRegistrationListeners
in interface org.osgi.service.blueprint.reflect.ServiceMetadata
setRegistrationListeners
public void setRegistrationListeners(Collection<org.osgi.service.blueprint.reflect.RegistrationListener> registrationListeners)
addRegistrationListener
public void addRegistrationListener(org.osgi.service.blueprint.reflect.RegistrationListener registrationListenerMetadata)
- Specified by:
addRegistrationListener
in interface MutableServiceMetadata
addRegistrationListener
public org.osgi.service.blueprint.reflect.RegistrationListener addRegistrationListener(org.osgi.service.blueprint.reflect.Target listenerComponent,
String registrationMethodName,
String unregistrationMethodName)
- Specified by:
addRegistrationListener
in interface MutableServiceMetadata
removeRegistrationListener
public void removeRegistrationListener(org.osgi.service.blueprint.reflect.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.