package com.client.project.context;
import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ApplicationContextOne extends ClassPathXmlApplicationContext {
private static ApplicationContextOne applicationContext = null;
public ApplicationContextOne(String arg0) throws BeansException {
super(arg0);
}
public ApplicationContextOne() throws BeansException {
super("ApplicationContext.xml");//argument is the name of the context xml file
}
static{
Thread.currentThread().setContextClassLoader(ApplicationContextOne.class.getClassLoader());
applicationContext = new ApplicationContextOne();
}
}
Wednesday, May 23, 2007
Subscribe to:
Posts (Atom)