org.springframework.extensions.config
Class WebStudioConfigElement
java.lang.Object
org.springframework.extensions.config.element.ConfigElementAdapter
org.springframework.extensions.config.WebStudioConfigElement
- All Implemented Interfaces:
- Serializable, ConfigElement, WebStudioConfigProperties
public class WebStudioConfigElement
- extends ConfigElementAdapter
- implements WebStudioConfigProperties
- Author:
- muzquiano
- See Also:
- Serialized Form
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString |
CONFIG_ELEMENT_ID
public static final String CONFIG_ELEMENT_ID
- See Also:
- Constant Field Values
applications
protected HashMap<String,WebStudioConfigElement.ApplicationDescriptor> applications
developerMode
protected boolean developerMode
WebStudioConfigElement
public WebStudioConfigElement()
- Default Constructor
combine
public ConfigElement combine(ConfigElement element)
- Description copied from interface:
ConfigElement
- Combines the given config element with this config element and returns a
new instance containing the resulting combination. The combination of the
two objects MUST NOT change this instance.
- Specified by:
combine
in interface ConfigElement
- Specified by:
combine
in class ConfigElementAdapter
- Parameters:
element
- The config element to combine into this one
- Returns:
- The combined ConfigElement
isDeveloperMode
public boolean isDeveloperMode()
- Description copied from interface:
WebStudioConfigProperties
- Whether the current Web Studio instance is in developer mode
- Specified by:
isDeveloperMode
in interface WebStudioConfigProperties
- Returns:
setDeveloperMode
public void setDeveloperMode(boolean developerMode)
- Description copied from interface:
WebStudioConfigProperties
- Allows the developer mode switch to be toggled
- Specified by:
setDeveloperMode
in interface WebStudioConfigProperties
getApplicationIds
public String[] getApplicationIds()
- Description copied from interface:
WebStudioConfigProperties
- Returns an array of application ids for Web Studio
- Specified by:
getApplicationIds
in interface WebStudioConfigProperties
- Returns:
- string array
getApplication
public WebStudioConfigElement.ApplicationDescriptor getApplication(String id)
- Description copied from interface:
WebStudioConfigProperties
- Returns the application descriptor for the given application id
- Specified by:
getApplication
in interface WebStudioConfigProperties
- Returns:
- application descriptor
newInstance
protected static WebStudioConfigElement newInstance(org.dom4j.Element elem)
Copyright © 2009 SpringSource, Inc. All Rights Reserved.