org.springframework.flex.messaging.config
Class FlexConfigurationManager
java.lang.Object
org.springframework.flex.messaging.config.FlexConfigurationManager
- All Implemented Interfaces:
- flex.messaging.config.ConfigurationManager, org.springframework.context.ResourceLoaderAware
public class FlexConfigurationManager
- extends java.lang.Object
- implements flex.messaging.config.ConfigurationManager, org.springframework.context.ResourceLoaderAware
Implementation of ConfigurationManager that uses Spring's ResourceLoader abstraction for resolving BlazeDS xml configuration files.
- Author:
- Jeremy Grelle
| Fields inherited from interface flex.messaging.config.ConfigurationManager |
LOG_CATEGORY |
|
Method Summary |
flex.messaging.config.MessagingConfiguration |
getMessagingConfiguration(javax.servlet.ServletConfig servletConfig)
Parses the BlazeDS config files and returns a populated MessagingConfiguration |
void |
reportTokens()
|
void |
setConfigurationParser(flex.messaging.config.ConfigurationParser parser)
Sets the parser to be used in building a MessagingConfiguration. |
void |
setConfigurationPath(java.lang.String configurationPath)
Set the path for the BlazeDS XML configuration file. |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Set the ResourceLoader to be used to load BlazeDS XML configuration resources |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONFIG_PATH
public static final java.lang.String DEFAULT_CONFIG_PATH
- See Also:
- Constant Field Values
FlexConfigurationManager
public FlexConfigurationManager()
FlexConfigurationManager
public FlexConfigurationManager(org.springframework.core.io.ResourceLoader resourceLoader,
java.lang.String configurationPath)
getMessagingConfiguration
public flex.messaging.config.MessagingConfiguration getMessagingConfiguration(javax.servlet.ServletConfig servletConfig)
- Parses the BlazeDS config files and returns a populated MessagingConfiguration
- Specified by:
getMessagingConfiguration in interface flex.messaging.config.ConfigurationManager
- Parameters:
servletConfig - the servlet config for the web application
reportTokens
public void reportTokens()
- Specified by:
reportTokens in interface flex.messaging.config.ConfigurationManager
setConfigurationParser
public void setConfigurationParser(flex.messaging.config.ConfigurationParser parser)
- Sets the parser to be used in building a MessagingConfiguration. Defaults to the BlazeDS Apache Xalan based implementation.
- Parameters:
parser - the configuration parser to be used
setConfigurationPath
public void setConfigurationPath(java.lang.String configurationPath)
- Set the path for the BlazeDS XML configuration file.
- Parameters:
configurationPath - the path for the configuration file
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Set the
ResourceLoader to be used to load BlazeDS XML configuration resources
- Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware
- Parameters:
resourceLoader - the ResourceLoader for loading configuration resources