|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.flex.core.MessageBrokerFactoryBean
public class MessageBrokerFactoryBean
FactoryBean
that creates a local MessageBroker
instance within a Spring web application context. The
resulting Spring-managed MessageBroker can be used to export Spring beans for direct remoting from a Flex client.
By default, this FactoryBean will look for a BlazeDS config file at /WEB-INF/flex/services-config.xml. This location
may be overridden using the servicesConfigPath property. Spring's ResourceLoader
abstraction is used to load
the config resources, so the location may be specified using ant-style paths.
The initialization of the MessageBroker logically consists of two phases:
MessageBrokerConfigProcessor
instances with this FactoryBean via the configProcessors
property.
Http-based messages should be routed to the MessageBroker using the DispatcherServlet
in combination with the
MessageBrokerHandlerAdapter
.
MessageBrokerHandlerAdapter
,
MessageBrokerConfigProcessor
Constructor Summary | |
---|---|
MessageBrokerFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
Set<MessageBrokerConfigProcessor> |
getConfigProcessors()
Return the set of configuration processors that can customize the created MessageBroker |
MessageBroker |
getObject()
|
Class<? extends MessageBroker> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setBeanName(String name)
|
void |
setConfigProcessors(Set<MessageBrokerConfigProcessor> startupProcessors)
|
void |
setConfigurationManager(ConfigurationManager configurationManager)
|
void |
setResourceLoader(ResourceLoader resourceLoader)
|
void |
setServicesConfigPath(String servicesConfigPath)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageBrokerFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public Set<MessageBrokerConfigProcessor> getConfigProcessors()
MessageBroker
public MessageBroker getObject() throws Exception
getObject
in interface FactoryBean<MessageBroker>
Exception
public Class<? extends MessageBroker> getObjectType()
getObjectType
in interface FactoryBean<MessageBroker>
public boolean isSingleton()
isSingleton
in interface FactoryBean<MessageBroker>
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void setConfigProcessors(Set<MessageBrokerConfigProcessor> startupProcessors)
startupProcessors
- public void setConfigurationManager(ConfigurationManager configurationManager)
configurationManager
- public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader
in interface ResourceLoaderAware
public void setServicesConfigPath(String servicesConfigPath)
servicesConfigPath
- public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface ServletContextAware
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |