Package fr.dyade.aaa.jndi2.scn
Class scnURLContextFactory
- java.lang.Object
-
- fr.dyade.aaa.jndi2.scn.scnURLContextFactory
-
- All Implemented Interfaces:
ObjectFactory
public class scnURLContextFactory extends Object implements ObjectFactory
Context factory for scnURLContext objects. This factory will be used for all "scn:..." urls provided as Name objects for all JNDI operations.
-
-
Constructor Summary
Constructors Constructor Description scnURLContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetObjectInstance(Object url, Name name, Context ctx, Hashtable env)Returns an instance of scnURLContext for a java URL.
-
-
-
Field Detail
-
logger
public static final Logger logger
-
-
Method Detail
-
getObjectInstance
public Object getObjectInstance(Object url, Name name, Context ctx, Hashtable env) throws Exception
Returns an instance of scnURLContext for a java URL. If url is null, the result is a context for resolving java URLs. If url is a URL, the result is a context named by the URL.- Specified by:
getObjectInstancein interfaceObjectFactory- Parameters:
url- String with a "scn:" prefix or null.name- Name of context, relative to ctx, or null.ctx- Context relative to which 'name' is named.env- Environment to use when creating the context- Throws:
Exception
-
-