public class ServiceUtil {
private static final ApplicationContext appCtx = new ClassPathXmlApplicationContext(
"META-INF/springbeans.xml");
public static Object getService(Class t) {
return appCtx.getBean(t.getName());
}
}
public class ServiceUtil {
private static final ApplicationContext appCtx = new ClassPathXmlApplicationContext(
"META-INF/springbeans.xml");
public static Object getService(Class t) {
return appCtx.getBean(t.getName());
}
}