public abstract class SpringWebContextProxy extends Object implements javax.servlet.ServletContextListener, WebEventListenerFace
| 限定符和类型 | 字段和说明 |
|---|---|
protected AppContext |
appContext
全局上下文
|
protected org.springframework.web.context.support.XmlWebApplicationContext |
applicationContext
Spring Mvc的Ioc容器
|
protected String |
configLocation
配置文件路径,供子类赋值
|
protected org.nutz.ioc.Ioc |
ioc
Nutz的Ioc容器
|
protected String |
selfName
供子类赋值,应全局唯一
|
| 构造器和说明 |
|---|
SpringWebContextProxy() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
销毁Spring Mvc Ioc
|
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
容器初始化时,初始化Spring Mvc的Ioc容器,并放入ServletContext
|
EventListener |
getEventListener()
供NutzBoot的web容器使用的
|
protected List<String> |
getSpringBeanNames()
获取Spring Mvc中的对象名,供Nutz Ioc调用
|
@Inject(value="refer:$ioc") protected org.nutz.ioc.Ioc ioc
@Inject protected AppContext appContext
protected org.springframework.web.context.support.XmlWebApplicationContext applicationContext
protected String configLocation
protected String selfName
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized 在接口中 javax.servlet.ServletContextListenerprotected List<String> getSpringBeanNames()
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed 在接口中 javax.servlet.ServletContextListenerpublic EventListener getEventListener()
getEventListener 在接口中 WebEventListenerFaceCopyright © 2018. All rights reserved.