1 28 29 package com.caucho.ejb.protocol; 30 31 import com.caucho.naming.AbstractModel; 32 import com.caucho.naming.ContextImpl; 33 import com.caucho.naming.ObjectProxy; 34 35 import javax.naming.NamingException ; 36 import java.util.Hashtable ; 37 38 41 public class NamingProxy implements ObjectProxy, java.io.Serializable { 42 protected AbstractModel _namingModel; 44 45 50 public NamingProxy(AbstractModel namingModel) 51 throws NamingException  52 { 53 _namingModel = namingModel; 54 } 55 56 63 public Object createObject(Hashtable env) 64 throws NamingException  65 { 66 return new ContextImpl(_namingModel, env); 67 } 68 } 69 | Popular Tags |