public class FlexConfigurationManager extends Object implements flex.messaging.config.ConfigurationManager, ResourceLoaderAware
ConfigurationManager that uses Spring's ResourceLoader abstraction for resolving
BlazeDS xml configuration files.| Modifier and Type | Class and Description |
|---|---|
static class |
FlexConfigurationManager.NoOpLoginCommand
This LoginCommand implementation serves as a temporary placeholder in the case where none is defined in
services-config.xml and a Spring-configured LoginCommand may be injected later.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIG_PATH |
| Constructor and Description |
|---|
FlexConfigurationManager()
Create a new FlexConfigurationManager using the default configuration path.
|
FlexConfigurationManager(ResourceLoader resourceLoader,
String configurationPath)
Create a new FlexConfigurationManager with the given
ResourceLoader and configuration path. |
| Modifier and Type | Method and Description |
|---|---|
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(String configurationPath)
Set the path for the BlazeDS XML configuration file.
|
void |
setResourceLoader(ResourceLoader resourceLoader)
Set the
ResourceLoader to be used to load BlazeDS XML configuration resources |
public static final String DEFAULT_CONFIG_PATH
public FlexConfigurationManager()
public FlexConfigurationManager(ResourceLoader resourceLoader, String configurationPath)
ResourceLoader and configuration path.resourceLoader - the ResourceLoader to be used in loading the BlazeDS config files.configurationPath - the path to the top-level BlazeDS config file (usually services-config.xml)public flex.messaging.config.MessagingConfiguration getMessagingConfiguration(javax.servlet.ServletConfig servletConfig)
getMessagingConfiguration in interface flex.messaging.config.ConfigurationManagerservletConfig - the servlet config for the web applicationpublic void reportTokens()
reportTokens in interface flex.messaging.config.ConfigurationManagerpublic void setConfigurationParser(flex.messaging.config.ConfigurationParser parser)
parser - the configuration parser to be usedpublic void setConfigurationPath(String configurationPath)
configurationPath - the path for the configuration filepublic void setResourceLoader(ResourceLoader resourceLoader)
ResourceLoader to be used to load BlazeDS XML configuration resourcessetResourceLoader in interface ResourceLoaderAwareresourceLoader - the ResourceLoader for loading configuration resourcesCopyright © 2014. All rights reserved.