org.apache.geronimo.blueprint.reflect
Class ServiceReferenceMetadataImpl
java.lang.Object
org.apache.geronimo.blueprint.reflect.ComponentMetadataImpl
org.apache.geronimo.blueprint.reflect.ServiceReferenceMetadataImpl
- All Implemented Interfaces:
- ExtendedServiceReferenceMetadata, MutableComponentMetadata, MutableServiceReferenceMetadata, ComponentMetadata, Metadata, NonNullMetadata, ServiceReferenceMetadata
- Direct Known Subclasses:
- ReferenceListMetadataImpl, ReferenceMetadataImpl
public abstract class ServiceReferenceMetadataImpl
- extends ComponentMetadataImpl
- implements MutableServiceReferenceMetadata
Implementation of ServiceReferenceMetadata
- Version:
- $Rev: 760378 $, $Date: 2009-03-31 11:31:38 +0200 (Tue, 31 Mar 2009) $
- Author:
- Apache Geronimo Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
availability
protected int availability
interfaceName
protected String interfaceName
componentName
protected String componentName
filter
protected String filter
referenceListeners
protected Collection<ReferenceListener> referenceListeners
proxyMethod
protected int proxyMethod
ServiceReferenceMetadataImpl
public ServiceReferenceMetadataImpl()
ServiceReferenceMetadataImpl
public ServiceReferenceMetadataImpl(ServiceReferenceMetadata source)
getAvailability
public int getAvailability()
- Description copied from interface:
ServiceReferenceMetadata
- Return whether or not a matching service is required at all times.
This is specified in the
availability attribute of the
service reference.
- Specified by:
getAvailability in interface ServiceReferenceMetadata
- Returns:
- Whether or not a matching service is required at all times.
- See Also:
ServiceReferenceMetadata.AVAILABILITY_MANDATORY,
ServiceReferenceMetadata.AVAILABILITY_OPTIONAL
setAvailability
public void setAvailability(int availability)
- Specified by:
setAvailability in interface MutableServiceReferenceMetadata
getInterface
public String getInterface()
- Description copied from interface:
ServiceReferenceMetadata
- Return the name of the interface type that a matching service must
support.
This is specified in the
interface attribute of the service
reference.
- Specified by:
getInterface in interface ServiceReferenceMetadata
- Returns:
- The name of the interface type that a matching service must
support or
null when no interface name is specified.
setInterface
public void setInterface(String interfaceName)
- Specified by:
setInterface in interface MutableServiceReferenceMetadata
getComponentName
public String getComponentName()
- Description copied from interface:
ServiceReferenceMetadata
- Return the value of the
component-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.
- Specified by:
getComponentName in interface ServiceReferenceMetadata
- Returns:
- The value of the
component-name attribute of the
service reference or null if the attribute is not
specified.
setComponentName
public void setComponentName(String componentName)
- Specified by:
setComponentName in interface MutableServiceReferenceMetadata
getFilter
public String getFilter()
- Description copied from interface:
ServiceReferenceMetadata
- Return the filter expression that a matching service must match.
This is specified by the
filter attribute of the service
reference.
- Specified by:
getFilter in interface ServiceReferenceMetadata
- Returns:
- The filter expression that a matching service must match or
null if a filter is not specified.
setFilter
public void setFilter(String filter)
getReferenceListeners
public Collection<ReferenceListener> getReferenceListeners()
- Description copied from interface:
ServiceReferenceMetadata
- Return the reference listeners to receive bind and unbind events.
This is specified by the
reference-listener elements of the
service reference.
- Specified by:
getReferenceListeners in interface ServiceReferenceMetadata
- Returns:
- An immutable Collection of
ReferenceListener objects to
receive bind and unbind events. The Collection is empty if no
reference listeners are specified for the service reference.
setReferenceListeners
public void setReferenceListeners(Collection<ReferenceListener> listeners)
addServiceListener
public void addServiceListener(ReferenceListener bindingListenerMetadata)
- Specified by:
addServiceListener in interface MutableServiceReferenceMetadata
addServiceListener
public ReferenceListener addServiceListener(Target listenerComponent,
String bindMethodName,
String unbindMethodName)
- Specified by:
addServiceListener in interface MutableServiceReferenceMetadata
removeReferenceListener
public void removeReferenceListener(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
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.