org.apache.aries.blueprint.mutable
Interface MutableServiceReferenceMetadata

All Superinterfaces:
ComponentMetadata, ExtendedServiceReferenceMetadata, Metadata, MutableComponentMetadata, NonNullMetadata, ServiceReferenceMetadata
All Known Subinterfaces:
MutableReferenceListMetadata, MutableReferenceMetadata
All Known Implementing Classes:
ReferenceListMetadataImpl, ReferenceMetadataImpl, ServiceReferenceMetadataImpl

public interface MutableServiceReferenceMetadata
extends ExtendedServiceReferenceMetadata, MutableComponentMetadata

A mutable version of the ServiceReferenceMetadata that allows modifications.

Version:
$Rev$, $Date$

Field Summary
 
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
 
Method Summary
 void addServiceListener(ReferenceListener listener)
           
 ReferenceListener addServiceListener(Target listenerComponent, String bindMethodName, String unbindMethodName)
           
 void removeReferenceListener(ReferenceListener listener)
           
 void setAvailability(int availability)
           
 void setBundleContext(org.osgi.framework.BundleContext bc)
          Used to set a BundleContext for this reference lookup.
 void setComponentName(String componentName)
           
 void setFilter(String filter)
           
 void setInterface(String interfaceName)
           
 void setProxyMethod(int proxyMethod)
           
 void setRuntimeInterface(Class clazz)
           
 
Methods inherited from interface org.apache.aries.blueprint.ExtendedServiceReferenceMetadata
getBundleContext, getProxyMethod, getRuntimeInterface
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ServiceReferenceMetadata
getAvailability, getComponentName, getFilter, getInterface, getReferenceListeners
 
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
 

Method Detail

setAvailability

void setAvailability(int availability)

setInterface

void setInterface(String interfaceName)

setComponentName

void setComponentName(String componentName)

addServiceListener

void addServiceListener(ReferenceListener listener)

addServiceListener

ReferenceListener addServiceListener(Target listenerComponent,
                                     String bindMethodName,
                                     String unbindMethodName)

removeReferenceListener

void removeReferenceListener(ReferenceListener listener)

setProxyMethod

void setProxyMethod(int proxyMethod)

setFilter

void setFilter(String filter)

setRuntimeInterface

void setRuntimeInterface(Class clazz)

setBundleContext

void setBundleContext(org.osgi.framework.BundleContext bc)
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)

Parameters:
bc -


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