org.apache.aries.blueprint.reflect
Class ServiceReferenceMetadataImpl
java.lang.Object
org.apache.aries.blueprint.reflect.ComponentMetadataImpl
org.apache.aries.blueprint.reflect.ServiceReferenceMetadataImpl
- All Implemented Interfaces:
- ExtendedServiceReferenceMetadata, MutableComponentMetadata, MutableServiceReferenceMetadata, org.osgi.service.blueprint.reflect.ComponentMetadata, org.osgi.service.blueprint.reflect.Metadata, org.osgi.service.blueprint.reflect.NonNullMetadata, org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
- Direct Known Subclasses:
- ReferenceListMetadataImpl, ReferenceMetadataImpl
public abstract class ServiceReferenceMetadataImpl
- extends ComponentMetadataImpl
- implements MutableServiceReferenceMetadata
Implementation of ServiceReferenceMetadata
- Version:
- $Rev: 1179099 $, $Date: 2011-10-05 09:26:48 +0100 (Wed, 05 Oct 2011) $
Fields inherited from interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata |
AVAILABILITY_MANDATORY, AVAILABILITY_OPTIONAL |
Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
ACTIVATION_EAGER, ACTIVATION_LAZY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata |
getActivation, getDependsOn, getId |
availability
protected int availability
interfaceName
protected String interfaceName
componentName
protected String componentName
filter
protected String filter
referenceListeners
protected Collection<org.osgi.service.blueprint.reflect.ReferenceListener> referenceListeners
proxyMethod
protected int proxyMethod
runtimeInterface
protected Class runtimeInterface
bundleContext
protected org.osgi.framework.BundleContext bundleContext
ServiceReferenceMetadataImpl
public ServiceReferenceMetadataImpl()
ServiceReferenceMetadataImpl
public ServiceReferenceMetadataImpl(org.osgi.service.blueprint.reflect.ServiceReferenceMetadata source)
getAvailability
public int getAvailability()
- Specified by:
getAvailability
in interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
setAvailability
public void setAvailability(int availability)
- Specified by:
setAvailability
in interface MutableServiceReferenceMetadata
getInterface
public String getInterface()
- Specified by:
getInterface
in interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
setInterface
public void setInterface(String interfaceName)
- Specified by:
setInterface
in interface MutableServiceReferenceMetadata
getComponentName
public String getComponentName()
- Specified by:
getComponentName
in interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
setComponentName
public void setComponentName(String componentName)
- Specified by:
setComponentName
in interface MutableServiceReferenceMetadata
getFilter
public String getFilter()
- Specified by:
getFilter
in interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
setFilter
public void setFilter(String filter)
- Specified by:
setFilter
in interface MutableServiceReferenceMetadata
getReferenceListeners
public Collection<org.osgi.service.blueprint.reflect.ReferenceListener> getReferenceListeners()
- Specified by:
getReferenceListeners
in interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
setReferenceListeners
public void setReferenceListeners(Collection<org.osgi.service.blueprint.reflect.ReferenceListener> listeners)
addServiceListener
public void addServiceListener(org.osgi.service.blueprint.reflect.ReferenceListener bindingListenerMetadata)
- Specified by:
addServiceListener
in interface MutableServiceReferenceMetadata
addServiceListener
public org.osgi.service.blueprint.reflect.ReferenceListener addServiceListener(org.osgi.service.blueprint.reflect.Target listenerComponent,
String bindMethodName,
String unbindMethodName)
- Specified by:
addServiceListener
in interface MutableServiceReferenceMetadata
removeReferenceListener
public void removeReferenceListener(org.osgi.service.blueprint.reflect.ReferenceListener listener)
- Specified by:
removeReferenceListener
in interface MutableServiceReferenceMetadata
getProxyMethod
public int getProxyMethod()
- Specified by:
getProxyMethod
in interface ExtendedServiceReferenceMetadata
setProxyMethod
public void setProxyMethod(int proxyMethod)
- Specified by:
setProxyMethod
in interface MutableServiceReferenceMetadata
getRuntimeInterface
public Class getRuntimeInterface()
- Specified by:
getRuntimeInterface
in interface ExtendedServiceReferenceMetadata
setRuntimeInterface
public void setRuntimeInterface(Class runtimeInterface)
- Specified by:
setRuntimeInterface
in interface MutableServiceReferenceMetadata
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContext
in interface ExtendedServiceReferenceMetadata
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext ctx)
- Description copied from interface:
MutableServiceReferenceMetadata
- Used to set a
BundleContext
for this reference lookup. If this
is set to null (or left unset) then the bundle context of the blueprint
bundle will be used (normal behaviour)
- Specified by:
setBundleContext
in interface MutableServiceReferenceMetadata
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.