|
@@ -22,6 +22,10 @@ public class SpringContextHolder implements ApplicationContextAware {
|
|
SpringContextHolder.ctx = ctx;
|
|
SpringContextHolder.ctx = ctx;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static ApplicationContext getApplicationContext() {
|
|
|
|
+ return ctx;
|
|
|
|
+ }
|
|
|
|
+
|
|
public static Object getBean(String name) {
|
|
public static Object getBean(String name) {
|
|
return ctx.getBean(name);
|
|
return ctx.getBean(name);
|
|
}
|
|
}
|