org.apache.james.container.spring.beanfactory
Class JamesApplicationContext

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by org.springframework.context.support.AbstractApplicationContext
          extended by org.springframework.context.support.AbstractRefreshableApplicationContext
              extended by org.apache.james.container.spring.beanfactory.AvalonApplicationContext
                  extended by org.apache.james.container.spring.beanfactory.JamesApplicationContext
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.ApplicationContext, org.springframework.context.ApplicationEventPublisher, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.Lifecycle, org.springframework.context.MessageSource, org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolver

public class JamesApplicationContext
extends AvalonApplicationContext

Override the ResourceLoader capabilities from the AvalonApplicationContext supporting JAMES' conf/var specific behaviours and the "classpath:" prefix.


Field Summary
static java.lang.String JAMES_ASSEMBLY_CONF
           
 
Fields inherited from class org.apache.james.container.spring.beanfactory.AvalonApplicationContext
PHOENIX_ASSEMBLY_CONF, SPRING_BEANS_CONF
 
Fields inherited from class org.springframework.context.support.AbstractApplicationContext
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
JamesApplicationContext(org.springframework.context.ApplicationContext parent, org.springframework.core.io.Resource containerConfigurationResource, org.springframework.core.io.Resource applicationConfigurationResource)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 org.springframework.core.io.Resource getResource(java.lang.String fileURL)
           
static JamesApplicationContext newJamesApplicationContext()
          configuration-by-convention constructor, tries to find default config files on classpath
static JamesApplicationContext newJamesApplicationContext(org.springframework.core.io.Resource containerConfigurationResource, org.springframework.core.io.Resource applicationConfigurationResource)
           
static JamesApplicationContext newJamesApplicationContext(java.lang.String containerConf, java.lang.String applicationConf)
           
 
Methods inherited from class org.apache.james.container.spring.beanfactory.AvalonApplicationContext
loadAvalonBasedBeanDefinitions, loadBeanDefinitions, newAvalonApplicationContext, newAvalonApplicationContext, newAvalonApplicationContext
 
Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext
closeBeanFactory, createBeanFactory, getBeanFactory, refreshBeanFactory
 
Methods inherited from class org.springframework.context.support.AbstractApplicationContext
addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, doClose, getAliases, getAutowireCapableBeanFactory, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getDisplayName, getInternalParentBeanFactory, getInternalParentMessageSource, getLifecycleBeans, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, isActive, isRunning, isSingleton, onClose, onRefresh, postProcessBeanFactory, publishEvent, refresh, registerShutdownHook, setDisplayName, setParent, start, stop, toString
 
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
getResourceByPath, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JAMES_ASSEMBLY_CONF

public static final java.lang.String JAMES_ASSEMBLY_CONF
See Also:
Constant Field Values
Constructor Detail

JamesApplicationContext

public JamesApplicationContext(org.springframework.context.ApplicationContext parent,
                               org.springframework.core.io.Resource containerConfigurationResource,
                               org.springframework.core.io.Resource applicationConfigurationResource)
Method Detail

newJamesApplicationContext

public static JamesApplicationContext newJamesApplicationContext()
configuration-by-convention constructor, tries to find default config files on classpath


newJamesApplicationContext

public static JamesApplicationContext newJamesApplicationContext(java.lang.String containerConf,
                                                                 java.lang.String applicationConf)

newJamesApplicationContext

public static JamesApplicationContext newJamesApplicationContext(org.springframework.core.io.Resource containerConfigurationResource,
                                                                 org.springframework.core.io.Resource applicationConfigurationResource)

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface org.springframework.core.io.ResourceLoader
Overrides:
getClassLoader in class org.springframework.core.io.DefaultResourceLoader

getResource

public org.springframework.core.io.Resource getResource(java.lang.String fileURL)
Specified by:
getResource in interface org.springframework.core.io.ResourceLoader
Overrides:
getResource in class org.springframework.core.io.DefaultResourceLoader


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.