001/*
002 * Copyright 2006-2007 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.batch.core.configuration.support;
018
019import org.springframework.context.ApplicationContext;
020import org.springframework.core.io.Resource;
021
022/**
023 * {@link ApplicationContextFactory} implementation that takes a parent context
024 * and a path to the context to create. When createApplicationContext method is
025 * called, the child {@link ApplicationContext} will be returned. The child
026 * context is not re-created every time it is requested, it is lazily
027 * initialized and cached. Clients should ensure that it is closed when it is no
028 * longer needed. If a path is not set, the parent will always be returned.
029 * 
030 * @deprecated use {@link GenericApplicationContextFactory} instead
031 */
032@Deprecated
033public class ClassPathXmlApplicationContextFactory extends GenericApplicationContextFactory {
034
035        /**
036         * Create an application context factory for the resource specified.
037         * 
038         * @param resource a resource (XML configuration file)
039         */
040        public ClassPathXmlApplicationContextFactory(Resource resource) {
041                super(resource);
042        }
043
044}