benq大哥,第七章问题求教

benq大哥你好!谢谢你上次的解答,现在又有两个问题麻烦你了。
前段时间刚学到第七章,因为要考试停了下来,现在可以再学了。关于第七章的浏览器/服务器下的ServiceFactioryImp类的getService(EjBDefinition eJBDefinition,HttpServletRequest request)我能不能这样实现?(EJBTest是要调用的EJB)
publci Object getService(EjBDefinition eJBDefinition,HttpServletRequest request){
EJBTest ejbTest = null;
WebInvocationHandler invocation = new WebInvocationHandler(eJBDefinition);
ejbTest = (EJBTest) Proxy.newProxyInstance(invocation.getClass().getClassLoader(),new Class[]{EJBTest},invocation);
return ejbTest;
}
因为不知道应该传什么给newProxyInstance(ClassLoader loader,Class[] interfaces,InvocationHandler h)方法的loader和h参数,你书中有说到“ClassLoader必须能够调用到代理接口”,具体到WebInvocationHandler类什样理解这句话?

具体代码我没有看,你可看newProxyInstance方法中参数Class[] interfaces为什么?这个就是接口。