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, 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) $

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(org.osgi.service.blueprint.reflect.ServiceMetadata source)
           
 
Method Summary
 void addInterface(String interfaceName)
           
 void addRegistrationListener(org.osgi.service.blueprint.reflect.RegistrationListener registrationListenerMetadata)
           
 org.osgi.service.blueprint.reflect.RegistrationListener addRegistrationListener(org.osgi.service.blueprint.reflect.Target listenerComponent, String registrationMethodName, String unregistrationMethodName)
           
 void addServiceProperty(org.osgi.service.blueprint.reflect.MapEntry serviceProperty)
           
 org.osgi.service.blueprint.reflect.MapEntry addServiceProperty(org.osgi.service.blueprint.reflect.NonNullMetadata key, org.osgi.service.blueprint.reflect.Metadata value)
           
 int getAutoExport()
           
 List<String> getInterfaces()
           
 int getRanking()
           
 Collection<org.osgi.service.blueprint.reflect.RegistrationListener> getRegistrationListeners()
           
 org.osgi.service.blueprint.reflect.Target getServiceComponent()
           
 List<org.osgi.service.blueprint.reflect.MapEntry> getServiceProperties()
           
 void removeInterface(String interfaceName)
           
 void removeRegistrationListener(org.osgi.service.blueprint.reflect.RegistrationListener listener)
           
 void removeServiceProperty(org.osgi.service.blueprint.reflect.MapEntry serviceProperty)
           
 void setAutoExport(int autoExport)
           
 void setInterfaceNames(List<String> interfaceNames)
           
 void setRanking(int ranking)
           
 void setRegistrationListeners(Collection<org.osgi.service.blueprint.reflect.RegistrationListener> registrationListeners)
           
 void setServiceComponent(org.osgi.service.blueprint.reflect.Target exportedComponent)
           
 void setServiceProperties(List<org.osgi.service.blueprint.reflect.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(org.osgi.service.blueprint.reflect.ServiceMetadata source)
Method Detail

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.