public abstract class ServiceReferenceMetadataImpl extends ComponentMetadataImpl implements MutableServiceReferenceMetadata
| Modifier and Type | Field and Description |
|---|---|
protected int |
availability |
protected String |
componentName |
protected String |
filter |
protected String |
interfaceName |
protected int |
proxyMethod |
protected Collection<ReferenceListener> |
referenceListeners |
protected Class |
runtimeInterface |
activation, dependsOn, idPROXY_METHOD_CLASSES, PROXY_METHOD_DEFAULTAVAILABILITY_MANDATORY, AVAILABILITY_OPTIONALACTIVATION_EAGER, ACTIVATION_LAZY| Constructor and Description |
|---|
ServiceReferenceMetadataImpl() |
ServiceReferenceMetadataImpl(ServiceReferenceMetadata source) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceListener(ReferenceListener bindingListenerMetadata) |
ReferenceListener |
addServiceListener(Target listenerComponent,
String bindMethodName,
String unbindMethodName) |
int |
getAvailability()
Return whether or not a matching service is required at all times.
|
String |
getComponentName()
Return the value of the
component-name attribute of the
service reference. |
String |
getFilter()
Return the filter expression that a matching service must match.
|
String |
getInterface()
Return the name of the interface type that a matching service must
support.
|
int |
getProxyMethod() |
Collection<ReferenceListener> |
getReferenceListeners()
Return the reference listeners to receive bind and unbind events.
|
Class |
getRuntimeInterface() |
void |
removeReferenceListener(ReferenceListener listener) |
void |
setAvailability(int availability) |
void |
setComponentName(String componentName) |
void |
setFilter(String filter) |
void |
setInterface(String interfaceName) |
void |
setProxyMethod(int proxyMethod) |
void |
setReferenceListeners(Collection<ReferenceListener> listeners) |
void |
setRuntimeInterface(Class runtimeInterface) |
addDependsOn, getActivation, getDependsOn, getId, removeDependsOn, setActivation, setDependsOn, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActivation, getDependsOn, getIdaddDependsOn, removeDependsOn, setActivation, setDependsOn, setIdprotected int availability
protected String interfaceName
protected String componentName
protected String filter
protected Collection<ReferenceListener> referenceListeners
protected int proxyMethod
protected Class runtimeInterface
public ServiceReferenceMetadataImpl()
public ServiceReferenceMetadataImpl(ServiceReferenceMetadata source)
public int getAvailability()
ServiceReferenceMetadataavailability attribute of the
service reference.getAvailability in interface ServiceReferenceMetadataServiceReferenceMetadata.AVAILABILITY_MANDATORY,
ServiceReferenceMetadata.AVAILABILITY_OPTIONALpublic void setAvailability(int availability)
setAvailability in interface MutableServiceReferenceMetadatapublic String getInterface()
ServiceReferenceMetadatainterface attribute of the service
reference.getInterface in interface ServiceReferenceMetadatanull when no interface name is specified.public void setInterface(String interfaceName)
setInterface in interface MutableServiceReferenceMetadatapublic String getComponentName()
ServiceReferenceMetadatacomponent-name attribute of the
service reference. This specifies the id of a component that is
registered in the service registry. This will create an automatic filter,
appended with the filter if set, to select this component based on its
automatic id attribute.getComponentName in interface ServiceReferenceMetadatacomponent-name attribute of the
service reference or null if the attribute is not
specified.public void setComponentName(String componentName)
setComponentName in interface MutableServiceReferenceMetadatapublic String getFilter()
ServiceReferenceMetadatafilter attribute of the service
reference.getFilter in interface ServiceReferenceMetadatanull if a filter is not specified.public void setFilter(String filter)
setFilter in interface MutableServiceReferenceMetadatapublic Collection<ReferenceListener> getReferenceListeners()
ServiceReferenceMetadatareference-listener elements of the
service reference.getReferenceListeners in interface ServiceReferenceMetadataReferenceListener objects to
receive bind and unbind events. The Collection is empty if no
reference listeners are specified for the service reference.public void setReferenceListeners(Collection<ReferenceListener> listeners)
public void addServiceListener(ReferenceListener bindingListenerMetadata)
addServiceListener in interface MutableServiceReferenceMetadatapublic ReferenceListener addServiceListener(Target listenerComponent, String bindMethodName, String unbindMethodName)
addServiceListener in interface MutableServiceReferenceMetadatapublic void removeReferenceListener(ReferenceListener listener)
removeReferenceListener in interface MutableServiceReferenceMetadatapublic int getProxyMethod()
getProxyMethod in interface ExtendedServiceReferenceMetadatapublic void setProxyMethod(int proxyMethod)
setProxyMethod in interface MutableServiceReferenceMetadatapublic Class getRuntimeInterface()
getRuntimeInterface in interface ExtendedServiceReferenceMetadatapublic void setRuntimeInterface(Class runtimeInterface)
setRuntimeInterface in interface MutableServiceReferenceMetadataCopyright © 2016. All rights reserved.