abstract class SimpleServiceReferenceComponentMetadata extends SimpleComponentMetadata implements ServiceReferenceMetadata
ServiceReferenceComponentMetadata implementation based on Spring's BeanDefinition.| Modifier and Type | Field and Description |
|---|---|
private int |
availability |
private static java.lang.String |
AVAILABILITY_PROP |
private java.lang.String |
componentName |
private java.lang.String |
filter |
private static java.lang.String |
FILTER_PROP |
private static java.lang.String |
INTERFACES_PROP |
private java.lang.String |
intf |
private java.util.Collection<ReferenceListener> |
listeners |
private static java.lang.String |
LISTENERS_PROP |
private static java.lang.String |
SERVICE_NAME_PROP |
beanDefinitionAVAILABILITY_MANDATORY, AVAILABILITY_OPTIONALACTIVATION_EAGER, ACTIVATION_LAZY| Constructor and Description |
|---|
SimpleServiceReferenceComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
Constructs a new
SpringServiceReferenceComponentMetadata instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailability()
Return whether or not a matching service is required at all times.
|
java.lang.String |
getComponentName()
Return the value of the
component-name attribute of the
service reference. |
java.lang.String |
getFilter()
Return the filter expression that a matching service must match.
|
java.lang.String |
getInterface()
Return the name of the interface type that a matching service must
support.
|
java.util.Collection<ReferenceListener> |
getReferenceListeners()
Return the reference listeners to receive bind and unbind events.
|
equals, getActivation, getBeanDefinition, getDependsOn, getId, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActivation, getDependsOn, getIdprivate static final java.lang.String FILTER_PROP
private static final java.lang.String INTERFACES_PROP
private static final java.lang.String AVAILABILITY_PROP
private static final java.lang.String SERVICE_NAME_PROP
private static final java.lang.String LISTENERS_PROP
private final java.lang.String componentName
private final java.lang.String filter
private final int availability
private final java.lang.String intf
private final java.util.Collection<ReferenceListener> listeners
public SimpleServiceReferenceComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
SpringServiceReferenceComponentMetadata instance.name - bean namedefinition - bean definitionpublic int getAvailability()
ServiceReferenceMetadataavailability attribute of the
service reference.getAvailability in interface ServiceReferenceMetadataServiceReferenceMetadata.AVAILABILITY_MANDATORY,
ServiceReferenceMetadata.AVAILABILITY_OPTIONALpublic java.lang.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 java.lang.String getFilter()
ServiceReferenceMetadatafilter attribute of the service
reference.getFilter in interface ServiceReferenceMetadatanull if a filter is not specified.public java.lang.String getInterface()
ServiceReferenceMetadatainterface attribute of the service
reference.getInterface in interface ServiceReferenceMetadatanull when no interface name is specified.public java.util.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.