public class JamesServerWebApplicationContext extends org.springframework.web.context.support.XmlWebApplicationContext implements JamesResourceLoader
XmlWebApplicationContext
which is used to startup james in a servlet
containerDEFAULT_CONFIG_LOCATION, DEFAULT_CONFIG_LOCATION_PREFIX, DEFAULT_CONFIG_LOCATION_SUFFIX
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
APPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAME
CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
Constructor and Description |
---|
JamesServerWebApplicationContext() |
Modifier and Type | Method and Description |
---|---|
String |
getAbsoluteDirectory()
Return the configuration directory of the application
|
String |
getConfDirectory()
Return the var directory of the application
|
org.springframework.core.io.Resource |
getResource(String fileURL) |
String |
getRootDirectory()
Return the root directory of the application
|
String |
getVarDirectory()
Return the absolute directory of the application
|
void |
setAbsoluteDirectory(String absoluteDirectory) |
void |
setConfDirectory(String confDirectory) |
void |
setRootDirectory(String rootDirectory) |
void |
setVarDirectory(String varDirectory) |
getDefaultConfigLocations, initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions
createEnvironment, getConfigLocations, getNamespace, getResourceByPath, getResourcePatternResolver, getServletConfig, getServletContext, getTheme, initPropertySources, onRefresh, postProcessBeanFactory, setNamespace, setServletConfig, setServletContext
afterPropertiesSet, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
addApplicationListener, addBeanFactoryPostProcessor, addListener, cancelRefresh, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getDisplayName, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResources, getStartupDate, getType, initApplicationEventMulticaster, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setParent, start, stop, toString
getClassLoader, setClassLoader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setConfigLocation, setConfigLocations
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent
getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
getMessage, getMessage, getMessage
public org.springframework.core.io.Resource getResource(String fileURL)
getResource
in interface org.springframework.core.io.ResourceLoader
getResource
in class org.springframework.core.io.DefaultResourceLoader
DefaultResourceLoader.getResource(java.lang.String)
public void setRootDirectory(String rootDirectory)
public void setAbsoluteDirectory(String absoluteDirectory)
public void setVarDirectory(String varDirectory)
public void setConfDirectory(String confDirectory)
public String getAbsoluteDirectory()
JamesResourceLoader
getAbsoluteDirectory
in interface JamesResourceLoader
JamesResourceLoader.getAbsoluteDirectory()
public String getConfDirectory()
JamesResourceLoader
getConfDirectory
in interface JamesResourceLoader
JamesResourceLoader.getConfDirectory()
public String getVarDirectory()
JamesResourceLoader
getVarDirectory
in interface JamesResourceLoader
JamesResourceLoader.getVarDirectory()
public String getRootDirectory()
JamesResourceLoader
getRootDirectory
in interface JamesResourceLoader
JamesResourceLoader.getRootDirectory()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.