class SimpleServiceExportComponentMetadata extends SimpleComponentMetadata implements ServiceMetadata
ServiceMetadata implementation based on Spring's BeanDefinition.| Modifier and Type | Field and Description |
|---|---|
private int |
activation |
private static java.lang.String |
AUTO_EXPORT_PROP |
private int |
autoExport |
private Target |
component |
private java.util.List<java.lang.String> |
interfaces |
private static java.lang.String |
INTERFACES_PROP |
private static java.lang.String |
LAZY_LISTENERS |
private java.util.Collection<RegistrationListener> |
listeners |
private static java.lang.String |
LISTENERS_PROP |
private int |
ranking |
private static java.lang.String |
RANKING_PROP |
private static java.lang.String |
SERVICE_INSTANCE_PROP |
private static java.lang.String |
SERVICE_NAME_PROP |
private static java.lang.String |
SERVICE_PROPERTIES_PROP |
private java.util.List<MapEntry> |
serviceProperties |
beanDefinitionAUTO_EXPORT_ALL_CLASSES, AUTO_EXPORT_CLASS_HIERARCHY, AUTO_EXPORT_DISABLED, AUTO_EXPORT_INTERFACESACTIVATION_EAGER, ACTIVATION_LAZY| Constructor and Description |
|---|
SimpleServiceExportComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
Constructs a new
SpringServiceExportComponentMetadata instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getActivation()
Return the activation strategy for the component.
|
int |
getAutoExport()
Return the auto-export mode for the service.
|
java.util.List<java.lang.String> |
getInterfaces()
Return the type names of the interfaces that the service should be
advertised as supporting.
|
int |
getRanking()
Return the ranking value to use when advertising the service.
|
java.util.Collection<RegistrationListener> |
getRegistrationListeners()
Return the registration listeners to be notified when the service is
registered and unregistered with the framework.
|
Target |
getServiceComponent()
Return the Metadata for the component to be exported as a service.
|
java.util.List<MapEntry> |
getServiceProperties()
Return the user declared properties to be advertised with the service.
|
equals, getBeanDefinition, getDependsOn, getId, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDependsOn, getIdprivate static final java.lang.String AUTO_EXPORT_PROP
private static final java.lang.String RANKING_PROP
private static final java.lang.String INTERFACES_PROP
private static final java.lang.String SERVICE_NAME_PROP
private static final java.lang.String SERVICE_INSTANCE_PROP
private static final java.lang.String SERVICE_PROPERTIES_PROP
private static final java.lang.String LISTENERS_PROP
private static final java.lang.String LAZY_LISTENERS
private final int autoExport
private final java.util.List<java.lang.String> interfaces
private final int ranking
private final Target component
private final java.util.List<MapEntry> serviceProperties
private final java.util.Collection<RegistrationListener> listeners
private final int activation
public SimpleServiceExportComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
SpringServiceExportComponentMetadata instance.name - bean namedefinition - bean definitionpublic int getAutoExport()
ServiceMetadataauto-export attribute of the
service.getAutoExport in interface ServiceMetadataServiceMetadata.AUTO_EXPORT_DISABLED,
ServiceMetadata.AUTO_EXPORT_INTERFACES,
ServiceMetadata.AUTO_EXPORT_CLASS_HIERARCHY,
ServiceMetadata.AUTO_EXPORT_ALL_CLASSESpublic java.util.List<java.lang.String> getInterfaces()
ServiceMetadatainterface attribute or child
interfaces element of the service.getInterfaces in interface ServiceMetadataString for the type names of
the interfaces that the service should be advertised as
supporting. The List is empty if using auto-export
or no interface names are specified for the service.public int getRanking()
ServiceMetadataservice.ranking service property.
This is specified by the ranking attribute of the service.getRanking in interface ServiceMetadatapublic java.util.Collection<RegistrationListener> getRegistrationListeners()
ServiceMetadataregistration-listener elements of
the service.getRegistrationListeners in interface ServiceMetadataRegistrationListener objects
to be notified when the service is registered and unregistered
with the framework. The Collection is empty if no registration
listeners are specified for the service.public Target getServiceComponent()
ServiceMetadataref attribute of the
service.getServiceComponent in interface ServiceMetadatapublic java.util.List<MapEntry> getServiceProperties()
ServiceMetadataservice-properties element of the
service.getServiceProperties in interface ServiceMetadataMapEntry objects for the user
declared properties to be advertised with the service. The List
is empty if no service properties are specified for the service.public int getActivation()
ComponentMetadataactivation attribute of a component
definition. If this is not set, then the default-activation
in the blueprint element is used. If that is also not set,
then the activation strategy is ComponentMetadata.ACTIVATION_EAGER.getActivation in interface ComponentMetadatagetActivation in class SimpleComponentMetadataComponentMetadata.ACTIVATION_EAGER,
ComponentMetadata.ACTIVATION_LAZY