org.apache.aries.blueprint.reflect
Class ServiceReferenceMetadataImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.ComponentMetadataImpl
      extended by 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) $

Field Summary
protected  int availability
           
protected  org.osgi.framework.BundleContext bundleContext
           
protected  String componentName
           
protected  String filter
           
protected  String interfaceName
           
protected  int proxyMethod
           
protected  Collection<org.osgi.service.blueprint.reflect.ReferenceListener> referenceListeners
           
protected  Class runtimeInterface
           
 
Fields inherited from class org.apache.aries.blueprint.reflect.ComponentMetadataImpl
activation, dependsOn, id
 
Fields inherited from interface org.apache.aries.blueprint.ExtendedServiceReferenceMetadata
PROXY_METHOD_CLASSES, PROXY_METHOD_DEFAULT
 
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
 
Constructor Summary
ServiceReferenceMetadataImpl()
           
ServiceReferenceMetadataImpl(org.osgi.service.blueprint.reflect.ServiceReferenceMetadata source)
           
 
Method Summary
 void addServiceListener(org.osgi.service.blueprint.reflect.ReferenceListener bindingListenerMetadata)
           
 org.osgi.service.blueprint.reflect.ReferenceListener addServiceListener(org.osgi.service.blueprint.reflect.Target listenerComponent, String bindMethodName, String unbindMethodName)
           
 int getAvailability()
           
 org.osgi.framework.BundleContext getBundleContext()
           
 String getComponentName()
           
 String getFilter()
           
 String getInterface()
           
 int getProxyMethod()
           
 Collection<org.osgi.service.blueprint.reflect.ReferenceListener> getReferenceListeners()
           
 Class getRuntimeInterface()
           
 void removeReferenceListener(org.osgi.service.blueprint.reflect.ReferenceListener listener)
           
 void setAvailability(int availability)
           
 void setBundleContext(org.osgi.framework.BundleContext ctx)
           
 void setComponentName(String componentName)
           
 void setFilter(String filter)
           
 void setInterface(String interfaceName)
           
 void setProxyMethod(int proxyMethod)
           
 void setReferenceListeners(Collection<org.osgi.service.blueprint.reflect.ReferenceListener> listeners)
           
 void setRuntimeInterface(Class runtimeInterface)
           
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
getActivation, getDependsOn, getId
 
Methods inherited from interface org.apache.aries.blueprint.mutable.MutableComponentMetadata
addDependsOn, removeDependsOn, setActivation, setDependsOn, setId
 

Field Detail

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
Constructor Detail

ServiceReferenceMetadataImpl

public ServiceReferenceMetadataImpl()

ServiceReferenceMetadataImpl

public ServiceReferenceMetadataImpl(org.osgi.service.blueprint.reflect.ServiceReferenceMetadata source)
Method Detail

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)
Specified by:
setBundleContext in interface MutableServiceReferenceMetadata


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