public class IocObjInjector extends Object implements ParamInjector
如果系统挂载了 Ioc 容器,则会为该参数赋值,否则则抛出一个运行时异常
IocObj
构造器和说明 |
---|
IocObjInjector(Class<?> objType,
String objName) |
public Object get(javax.servlet.ServletContext sc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Object refer)
get
在接口中 ParamInjector
sc
- TODOreq
- 请求对象resp
- 响应对象refer
- 参考对象Copyright © 2016. All rights reserved.