日期:2014-05-20  浏览次数:20550 次

帮我解释一下这段代码?
private void loadController(){
InitialContext ctx = this.getCtx("localhost:1099");
try {
UrlMapingDao dao = (UrlMapingDao) ctx
.lookup("UrlMapingDaoImpl/remote");
List<SysUrlMapping> result = dao.findBySite("www");
for (SysUrlMapping m : result) {
Class c = Class.forName(m.getController().getPath());
BaseController controller = (BaseController)c.newInstance();
controllers.put(m.getUri(), controller);
}

------解决方案--------------------
1、初始化上下文。
2、实例化远程接口。
3、调用接口实现。
4、后面应该是对类操作,代码不全,比较模糊。
------解决方案--------------------
1、初始化上下文。
2、实例化远程接口。
3、调用接口实现。 
up