1 package org.enhydra.spi.webxml; 2 3 import java.util.Hashtable ; 4 import javax.naming.Context ; 5 import javax.naming.Name ; 6 import javax.naming.NamingException ; 7 import javax.naming.spi.InitialContextFactory ; 8 import javax.naming.spi.ObjectFactory ; 9 import org.objectweb.carol.util.configuration.TraceCarol; 10 11 15 public class WebXmlInitialContextFactory implements ObjectFactory , InitialContextFactory { 16 17 23 public Context getInitialContext(Hashtable env) throws NamingException { 24 if (TraceCarol.isDebugJndiCarol()) { 25 TraceCarol.debugJndiCarol( 26 "MultiOrbInitialContextFactory.getInitialContext(Hashtable env)"); 27 } 28 return new WebXmlInitialContext(env); 29 } 30 31 40 public Object getObjectInstance(Object ref, Name name, Context nameCtx, Hashtable env) throws NamingException { 41 if (TraceCarol.isDebugJndiCarol()) { 42 TraceCarol.debugJndiCarol("MultiOrbInitialContextFactory.getObjectInstance(Object ref, Name name, Context nameCtx, Hashtable env)"); 43 } 44 return null; 46 } 47 } 48 | Popular Tags |