|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.flex.core.AbstractServiceConfigProcessor
public abstract class AbstractServiceConfigProcessor
Base MessageBrokerConfigProcessor
implementation for handling automatic Service
registration with the
MessageBroker
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
AbstractServiceConfigProcessor()
|
Method Summary | |
---|---|
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 java.lang.String |
getServiceAdapterClassName()
Returns the class name of the default ServiceAdapter for the Service |
protected abstract java.lang.String |
getServiceAdapterId()
Returns the default ServiceAdapter id for the Service |
protected abstract java.lang.String |
getServiceClassName()
Returns the class name of the specific Service implementation being configured |
protected abstract java.lang.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(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setDefaultAdapterId(java.lang.String defaultAdapterId)
Set the id for the default adapter to be installed in the Service . |
void |
setDefaultChannels(java.lang.String[] defaultChannels)
Set the ids of the default channels to be set on the Service . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractServiceConfigProcessor()
Method Detail |
---|
public flex.messaging.MessageBroker processAfterStartup(flex.messaging.MessageBroker broker)
processAfterStartup
in interface MessageBrokerConfigProcessor
broker
- the started MessageBroker
instance
MessageBroker
MessageBrokerConfigProcessor.processAfterStartup(MessageBroker)
public flex.messaging.MessageBroker processBeforeStartup(flex.messaging.MessageBroker broker)
processBeforeStartup
in interface MessageBrokerConfigProcessor
broker
- the new MessageBroker
instance
MessageBroker
MessageBrokerConfigProcessor.processBeforeStartup(MessageBroker)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setDefaultAdapterId(java.lang.String defaultAdapterId)
Service
.
defaultAdapterId
- the id to set for the adapterpublic void setDefaultChannels(java.lang.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 Service
protected abstract void findDefaultChannel(flex.messaging.MessageBroker broker, flex.messaging.services.Service service)
Service
broker
- the MessageBroker
that controls the Service
service
- the service being configuredprotected abstract java.lang.String getServiceAdapterClassName()
ServiceAdapter
for the Service
protected abstract java.lang.String getServiceAdapterId()
ServiceAdapter
id for the Service
protected abstract java.lang.String getServiceClassName()
Service
implementation being configured
protected abstract java.lang.String getServiceId()
Service
being configured
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |