org.springframework.extensions.config
Class WebFrameworkConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by org.springframework.extensions.config.WebFrameworkConfigElement
All Implemented Interfaces:
Serializable, ConfigElement, WebFrameworkConfigProperties

public class WebFrameworkConfigElement
extends ConfigElementAdapter
implements WebFrameworkConfigProperties

Web Framework configuration implementation

Author:
muzquiano
See Also:
Serialized Form

Nested Class Summary
static class WebFrameworkConfigElement.Descriptor
          Base for all Descriptor classes.
static class WebFrameworkConfigElement.ErrorHandlerDescriptor
           
static class WebFrameworkConfigElement.FormatDescriptor
           
static class WebFrameworkConfigElement.PersisterConfigDescriptor
           
static class WebFrameworkConfigElement.ResourceLoaderDescriptor
           
static class WebFrameworkConfigElement.ResourceResolverDescriptor
           
static class WebFrameworkConfigElement.RuntimeConfigDescriptor
           
static class WebFrameworkConfigElement.SystemPageDescriptor
           
static class WebFrameworkConfigElement.TagLibraryDescriptor
           
static class WebFrameworkConfigElement.TypeDescriptor
           
 
Field Summary
protected  String autowireModeId
           
protected  String autowireRuntimeId
           
static String CONFIG_ELEMENT_ID
           
static String DEFAULT_WEBFRAMEWORK_LINK_BUILDER_FACTORY_ID
           
static String DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_SEARCH_PATH_ID
           
static String DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_STORE_ID
           
static String DEFAULT_WEBFRAMEWORK_PAGE_MAPPER_FACTORY_ID
           
static String DEFAULT_WEBFRAMEWORK_REQUEST_CONTEXT_FACTORY_ID
           
static String DEFAULT_WEBFRAMEWORK_USER_FACTORY_ID
           
protected  String defaultComponentChrome
           
protected  String defaultFormatId
           
protected  String defaultLinkBuilderFactoryId
           
protected  String defaultPageMapperFactoryId
           
protected  String defaultPersisterId
           
protected  String defaultRegionChrome
           
protected  String defaultRequestContextFactoryId
           
protected  String defaultSiteConfiguration
           
protected  String defaultTheme
           
protected  String defaultUserFactoryId
           
protected  HashMap<String,WebFrameworkConfigElement.ErrorHandlerDescriptor> errorHandlers
           
protected  HashMap<String,WebFrameworkConfigElement.FormatDescriptor> formats
           
protected  boolean isTimerEnabled
           
static String MODE_DEVELOPMENT
           
static String MODE_PREVIEW
           
static String MODE_PRODUCTION
           
protected  HashMap<String,String> pageTypes
           
protected  WebFrameworkConfigElement.PersisterConfigDescriptor persisterConfigDescriptor
           
protected  HashMap<String,WebFrameworkConfigElement.ResourceLoaderDescriptor> resourceLoaders
           
protected  HashMap<String,WebFrameworkConfigElement.ResourceResolverDescriptor> resourceResolvers
           
protected  HashMap<String,WebFrameworkConfigElement.RuntimeConfigDescriptor> runtimeConfigs
           
protected  HashMap<String,WebFrameworkConfigElement.SystemPageDescriptor> systemPages
           
protected  HashMap<String,WebFrameworkConfigElement.TagLibraryDescriptor> tagLibraries
           
protected  HashMap<String,WebFrameworkConfigElement.TypeDescriptor> types
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
WebFrameworkConfigElement()
          Default Constructor
 
Method Summary
 ConfigElement combine(ConfigElement element)
          Combines the given config element with this config element and returns a new instance containing the resulting combination.
 String getAutowireModeId()
           
 String getAutowireRuntimeId()
          AUTOWIRE HELPERS
 String getDefaultComponentChrome()
           
 String getDefaultFormatId()
           
 String getDefaultLinkBuilderFactoryId()
           
 String getDefaultPageMapperFactoryId()
           
 String[] getDefaultPageTypeIds()
           
 String getDefaultPageTypeInstanceId(String id)
           
 String getDefaultPersisterId()
           
 String getDefaultRegionChrome()
           
 String getDefaultRequestContextFactoryId()
           
 String getDefaultSiteConfigurationId()
           
 String getDefaultThemeId()
           
 String getDefaultUserFactoryId()
           
 WebFrameworkConfigElement.ErrorHandlerDescriptor getErrorHandlerDescriptor(String id)
           
 String[] getErrorHandlerIds()
           
 WebFrameworkConfigElement.FormatDescriptor getFormatDescriptor(String id)
           
 String[] getFormatIds()
           
 WebFrameworkConfigElement.PersisterConfigDescriptor getPersisterConfigDescriptor()
           
 WebFrameworkConfigElement.ResourceLoaderDescriptor getResourceLoaderDescriptor(String id)
           
 String[] getResourceLoaderIds()
           
 WebFrameworkConfigElement.ResourceResolverDescriptor getResourceResolverDescriptor(String id)
           
 String[] getResourceResolverIds()
           
 WebFrameworkConfigElement.RuntimeConfigDescriptor getRuntimeConfigDescriptor(String id)
           
 WebFrameworkConfigElement.SystemPageDescriptor getSystemPageDescriptor(String id)
           
 String[] getSystemPageIds()
           
 WebFrameworkConfigElement.TagLibraryDescriptor getTagLibraryDescriptor(String id)
           
 String[] getTagLibraryIds()
           
 WebFrameworkConfigElement.TypeDescriptor getTypeDescriptor(String id)
           
 String[] getTypeIds()
           
 boolean isAutowireModeDevelopment()
           
 boolean isAutowireModePreview()
           
 boolean isAutowireModeProduction()
           
 boolean isPreviewEnabled()
           
 boolean isTimerEnabled()
           
protected static WebFrameworkConfigElement newInstance(org.dom4j.Element elem)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODE_DEVELOPMENT

public static final String MODE_DEVELOPMENT
See Also:
Constant Field Values

MODE_PREVIEW

public static final String MODE_PREVIEW
See Also:
Constant Field Values

MODE_PRODUCTION

public static final String MODE_PRODUCTION
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_PAGE_MAPPER_FACTORY_ID

public static final String DEFAULT_WEBFRAMEWORK_PAGE_MAPPER_FACTORY_ID
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_LINK_BUILDER_FACTORY_ID

public static final String DEFAULT_WEBFRAMEWORK_LINK_BUILDER_FACTORY_ID
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_REQUEST_CONTEXT_FACTORY_ID

public static final String DEFAULT_WEBFRAMEWORK_REQUEST_CONTEXT_FACTORY_ID
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_USER_FACTORY_ID

public static final String DEFAULT_WEBFRAMEWORK_USER_FACTORY_ID
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_SEARCH_PATH_ID

public static final String DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_SEARCH_PATH_ID
See Also:
Constant Field Values

DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_STORE_ID

public static final String DEFAULT_WEBFRAMEWORK_MODEL_OBJECT_STORE_ID
See Also:
Constant Field Values

CONFIG_ELEMENT_ID

public static final String CONFIG_ELEMENT_ID
See Also:
Constant Field Values

formats

protected HashMap<String,WebFrameworkConfigElement.FormatDescriptor> formats

errorHandlers

protected HashMap<String,WebFrameworkConfigElement.ErrorHandlerDescriptor> errorHandlers

systemPages

protected HashMap<String,WebFrameworkConfigElement.SystemPageDescriptor> systemPages

tagLibraries

protected HashMap<String,WebFrameworkConfigElement.TagLibraryDescriptor> tagLibraries

pageTypes

protected HashMap<String,String> pageTypes

types

protected HashMap<String,WebFrameworkConfigElement.TypeDescriptor> types

resourceLoaders

protected HashMap<String,WebFrameworkConfigElement.ResourceLoaderDescriptor> resourceLoaders

resourceResolvers

protected HashMap<String,WebFrameworkConfigElement.ResourceResolverDescriptor> resourceResolvers

runtimeConfigs

protected HashMap<String,WebFrameworkConfigElement.RuntimeConfigDescriptor> runtimeConfigs

isTimerEnabled

protected boolean isTimerEnabled

defaultPageMapperFactoryId

protected String defaultPageMapperFactoryId

defaultLinkBuilderFactoryId

protected String defaultLinkBuilderFactoryId

defaultRequestContextFactoryId

protected String defaultRequestContextFactoryId

defaultUserFactoryId

protected String defaultUserFactoryId

defaultFormatId

protected String defaultFormatId

defaultRegionChrome

protected String defaultRegionChrome

defaultComponentChrome

protected String defaultComponentChrome

defaultTheme

protected String defaultTheme

defaultSiteConfiguration

protected String defaultSiteConfiguration

defaultPersisterId

protected String defaultPersisterId

persisterConfigDescriptor

protected WebFrameworkConfigElement.PersisterConfigDescriptor persisterConfigDescriptor

autowireModeId

protected String autowireModeId

autowireRuntimeId

protected String autowireRuntimeId
Constructor Detail

WebFrameworkConfigElement

public WebFrameworkConfigElement()
Default Constructor

Method Detail

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

getFormatIds

public String[] getFormatIds()
Specified by:
getFormatIds in interface WebFrameworkConfigProperties

getFormatDescriptor

public WebFrameworkConfigElement.FormatDescriptor getFormatDescriptor(String id)
Specified by:
getFormatDescriptor in interface WebFrameworkConfigProperties

getErrorHandlerIds

public String[] getErrorHandlerIds()
Specified by:
getErrorHandlerIds in interface WebFrameworkConfigProperties

getErrorHandlerDescriptor

public WebFrameworkConfigElement.ErrorHandlerDescriptor getErrorHandlerDescriptor(String id)
Specified by:
getErrorHandlerDescriptor in interface WebFrameworkConfigProperties

getSystemPageIds

public String[] getSystemPageIds()
Specified by:
getSystemPageIds in interface WebFrameworkConfigProperties

getSystemPageDescriptor

public WebFrameworkConfigElement.SystemPageDescriptor getSystemPageDescriptor(String id)
Specified by:
getSystemPageDescriptor in interface WebFrameworkConfigProperties

getTagLibraryIds

public String[] getTagLibraryIds()
Specified by:
getTagLibraryIds in interface WebFrameworkConfigProperties

getTagLibraryDescriptor

public WebFrameworkConfigElement.TagLibraryDescriptor getTagLibraryDescriptor(String id)
Specified by:
getTagLibraryDescriptor in interface WebFrameworkConfigProperties

getTypeIds

public String[] getTypeIds()
Specified by:
getTypeIds in interface WebFrameworkConfigProperties

getTypeDescriptor

public WebFrameworkConfigElement.TypeDescriptor getTypeDescriptor(String id)
Specified by:
getTypeDescriptor in interface WebFrameworkConfigProperties

getResourceLoaderIds

public String[] getResourceLoaderIds()
Specified by:
getResourceLoaderIds in interface WebFrameworkConfigProperties

getResourceLoaderDescriptor

public WebFrameworkConfigElement.ResourceLoaderDescriptor getResourceLoaderDescriptor(String id)
Specified by:
getResourceLoaderDescriptor in interface WebFrameworkConfigProperties

getResourceResolverIds

public String[] getResourceResolverIds()
Specified by:
getResourceResolverIds in interface WebFrameworkConfigProperties

getResourceResolverDescriptor

public WebFrameworkConfigElement.ResourceResolverDescriptor getResourceResolverDescriptor(String id)
Specified by:
getResourceResolverDescriptor in interface WebFrameworkConfigProperties

isTimerEnabled

public boolean isTimerEnabled()
Specified by:
isTimerEnabled in interface WebFrameworkConfigProperties

getDefaultRegionChrome

public String getDefaultRegionChrome()
Specified by:
getDefaultRegionChrome in interface WebFrameworkConfigProperties

getDefaultComponentChrome

public String getDefaultComponentChrome()
Specified by:
getDefaultComponentChrome in interface WebFrameworkConfigProperties

getDefaultPageTypeIds

public String[] getDefaultPageTypeIds()
Specified by:
getDefaultPageTypeIds in interface WebFrameworkConfigProperties

getDefaultPageTypeInstanceId

public String getDefaultPageTypeInstanceId(String id)
Specified by:
getDefaultPageTypeInstanceId in interface WebFrameworkConfigProperties

getDefaultThemeId

public String getDefaultThemeId()
Specified by:
getDefaultThemeId in interface WebFrameworkConfigProperties

getDefaultSiteConfigurationId

public String getDefaultSiteConfigurationId()
Specified by:
getDefaultSiteConfigurationId in interface WebFrameworkConfigProperties

getDefaultFormatId

public String getDefaultFormatId()
Specified by:
getDefaultFormatId in interface WebFrameworkConfigProperties

getDefaultPageMapperFactoryId

public String getDefaultPageMapperFactoryId()
Specified by:
getDefaultPageMapperFactoryId in interface WebFrameworkConfigProperties

getDefaultLinkBuilderFactoryId

public String getDefaultLinkBuilderFactoryId()
Specified by:
getDefaultLinkBuilderFactoryId in interface WebFrameworkConfigProperties

getDefaultRequestContextFactoryId

public String getDefaultRequestContextFactoryId()
Specified by:
getDefaultRequestContextFactoryId in interface WebFrameworkConfigProperties

getDefaultUserFactoryId

public String getDefaultUserFactoryId()
Specified by:
getDefaultUserFactoryId in interface WebFrameworkConfigProperties

getDefaultPersisterId

public String getDefaultPersisterId()
Specified by:
getDefaultPersisterId in interface WebFrameworkConfigProperties

isAutowireModeDevelopment

public boolean isAutowireModeDevelopment()
Specified by:
isAutowireModeDevelopment in interface WebFrameworkConfigProperties

isAutowireModeProduction

public boolean isAutowireModeProduction()
Specified by:
isAutowireModeProduction in interface WebFrameworkConfigProperties

isAutowireModePreview

public boolean isAutowireModePreview()
Specified by:
isAutowireModePreview in interface WebFrameworkConfigProperties

getAutowireModeId

public String getAutowireModeId()
Specified by:
getAutowireModeId in interface WebFrameworkConfigProperties

getAutowireRuntimeId

public String getAutowireRuntimeId()
Description copied from interface: WebFrameworkConfigProperties
AUTOWIRE HELPERS

Specified by:
getAutowireRuntimeId in interface WebFrameworkConfigProperties

isPreviewEnabled

public boolean isPreviewEnabled()
Specified by:
isPreviewEnabled in interface WebFrameworkConfigProperties

getRuntimeConfigDescriptor

public WebFrameworkConfigElement.RuntimeConfigDescriptor getRuntimeConfigDescriptor(String id)
Specified by:
getRuntimeConfigDescriptor in interface WebFrameworkConfigProperties

getPersisterConfigDescriptor

public WebFrameworkConfigElement.PersisterConfigDescriptor getPersisterConfigDescriptor()
Specified by:
getPersisterConfigDescriptor in interface WebFrameworkConfigProperties

newInstance

protected static WebFrameworkConfigElement newInstance(org.dom4j.Element elem)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.