public class JamesServerApplicationContext extends org.springframework.context.support.ClassPathXmlApplicationContext implements JamesResourceLoader
ApplicationContext
which loads all needed Spring beans for JAMESModifier and Type | Class and Description |
---|---|
protected static class |
JamesServerApplicationContext.JamesServerResourceLoader |
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
Constructor and Description |
---|
JamesServerApplicationContext(String[] configs) |
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) |
protected static JamesServerApplicationContext.JamesServerResourceLoader |
getResourceLoader()
Protected accessor for the resource loader.
|
String |
getRootDirectory()
Return the root directory of the application
|
String |
getVarDirectory()
Return the absolute directory of the application
|
getConfigResources
initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions
afterPropertiesSet, getConfigLocations, getDefaultConfigLocations, 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, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setParent, start, stop, toString
getClassLoader, getResourceByPath, setClassLoader
public JamesServerApplicationContext(String[] configs)
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 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()
protected static JamesServerApplicationContext.JamesServerResourceLoader getResourceLoader()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.