org.ow2.jonas.lib.naming.java
Class javaURLContextFactory
java.lang.Object
org.ow2.jonas.lib.naming.java.javaURLContextFactory
- All Implemented Interfaces:
- ObjectFactory
public class javaURLContextFactory
- extends Object
- implements ObjectFactory
Context factory for javaURLContext objects.
This factory will be used for all "java:..." urls provided as Name objects
for all JNDI operations.
- Author:
- Philippe Durieux
Contributor(s):
Philippe Coq Monolog
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaURLContextFactory
public javaURLContextFactory()
getObjectInstance
public Object getObjectInstance(Object url,
Name name,
Context ctx,
Hashtable env)
throws Exception
- Returns an instance of javaURLContext 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:
getObjectInstance
in interface ObjectFactory
- Parameters:
url
- String with a "java:" 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
- Returns:
- new created object.
- Throws:
Exception
- if it fails.
Copyright © 2010 OW2 Consortium. All Rights Reserved.