public abstract class AbstractServiceConfigProcessor extends Object implements MessageBrokerConfigProcessor, BeanFactoryAware
MessageBrokerConfigProcessor implementation for handling automatic Service registration with the
MessageBroker| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractServiceConfigProcessor.CustomSpringAdapter
This is simply a marker to denote that a Spring-managed adapter will be injected at the proper initialization
point.
|
| Constructor and Description |
|---|
AbstractServiceConfigProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
findDefaultChannel(flex.messaging.MessageBroker broker,
flex.messaging.services.Service service)
Find and set an appropriate default channel for the
Service |
protected abstract String |
getServiceAdapterClassName()
Returns the class name of the default
ServiceAdapter for the Service |
protected abstract String |
getServiceAdapterId()
Returns the default
ServiceAdapter id for the Service |
protected abstract String |
getServiceClassName()
Returns the class name of the specific
Service implementation being configured |
protected abstract String |
getServiceId()
Returns the default id for the
Service being configured |
flex.messaging.MessageBroker |
processAfterStartup(flex.messaging.MessageBroker broker)
Error checking is done on the started MessageBroker to ensure configuration was successful.
|
flex.messaging.MessageBroker |
processBeforeStartup(flex.messaging.MessageBroker broker)
The MessageBroker is checked to see if the Service has already been configured via the BlazeDS XML config.
|
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setDefaultAdapterId(String defaultAdapterId)
Set the id for the default adapter to be installed in the
Service. |
void |
setDefaultChannels(String[] defaultChannels)
Set the ids of the default channels to be set on the
Service. |
public flex.messaging.MessageBroker processAfterStartup(flex.messaging.MessageBroker broker)
processAfterStartup in interface MessageBrokerConfigProcessorbroker - the started MessageBroker instanceMessageBrokerMessageBrokerConfigProcessor.processAfterStartup(MessageBroker)public flex.messaging.MessageBroker processBeforeStartup(flex.messaging.MessageBroker broker)
processBeforeStartup in interface MessageBrokerConfigProcessorbroker - the new MessageBroker instanceMessageBrokerMessageBrokerConfigProcessor.processBeforeStartup(MessageBroker)public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void setDefaultAdapterId(String defaultAdapterId)
Service.defaultAdapterId - the id to set for the adapterpublic void setDefaultChannels(String[] defaultChannels)
Service. If not set, the application-wide defaults
will be used. If no application-wide defaults can be found, a best guess will be made using the first available
channel with an appropriate endpoint.defaultChannels - the ids of the default channels for the Serviceprotected abstract void findDefaultChannel(flex.messaging.MessageBroker broker,
flex.messaging.services.Service service)
Servicebroker - the MessageBroker that controls the Serviceservice - the service being configuredprotected abstract String getServiceAdapterClassName()
ServiceAdapter for the Serviceprotected abstract String getServiceAdapterId()
ServiceAdapter id for the Serviceprotected abstract String getServiceClassName()
Service implementation being configuredprotected abstract String getServiceId()
Service being configuredCopyright © 2014. All rights reserved.