1 17 18 package org.apache.geronimo.naming.java; 19 20 import java.util.Hashtable ; 21 import javax.naming.Context ; 22 import javax.naming.Name ; 23 import javax.naming.OperationNotSupportedException ; 24 import javax.naming.spi.ObjectFactory ; 25 26 31 public class javaURLContextFactory implements ObjectFactory { 32 43 public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception { 44 if (obj == null) { 45 return new RootContext(); 46 } else { 47 throw new OperationNotSupportedException (); 48 } 49 } 50 } 51 | Popular Tags |