类 ClassPathXmlApplicationContextFactory
- java.lang.Object
- org.springframework.batch.core.configuration.support.AbstractApplicationContextFactory
- org.springframework.batch.core.configuration.support.GenericApplicationContextFactory
- org.springframework.batch.core.configuration.support.ClassPathXmlApplicationContextFactory
- 所有已实现的接口:
ApplicationContextFactory
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Deprecated public class ClassPathXmlApplicationContextFactory extends GenericApplicationContextFactory
已过时。useGenericApplicationContextFactory
insteadApplicationContextFactory
implementation that takes a parent context and a path to the context to create. When createApplicationContext method is called, the childApplicationContext
will be returned. The child context is not re-created every time it is requested, it is lazily initialized and cached. Clients should ensure that it is closed when it is no longer needed. If a path is not set, the parent will always be returned.
构造器概要
构造器 构造器 说明 ClassPathXmlApplicationContextFactory(org.springframework.core.io.Resource resource)
已过时。Create an application context factory for the resource specified.
方法概要
从类继承的方法 org.springframework.batch.core.configuration.support.GenericApplicationContextFactory
createApplicationContext
从类继承的方法 org.springframework.batch.core.configuration.support.AbstractApplicationContextFactory
createApplicationContext, equals, getBeanFactoryPostProcessorClasses, hashCode, isCopyConfiguration, prepareBeanFactory, prepareContext, setApplicationContext, setBeanFactoryPostProcessorClasses, setBeanPostProcessorExcludeClasses, setCopyConfiguration, toString
构造器详细资料
ClassPathXmlApplicationContextFactory
public ClassPathXmlApplicationContextFactory(org.springframework.core.io.Resource resource)
已过时。Create an application context factory for the resource specified.- 参数:
resource
- a resource (XML configuration file)