org.objectweb.easybeans.naming.pkg.java
Class javaURLContextFactory
java.lang.Object
org.objectweb.easybeans.naming.pkg.java.javaURLContextFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
public class javaURLContextFactory
- extends java.lang.Object
- implements javax.naming.spi.ObjectFactory
Factory used when resolving lookup on java: namespace.
It has to be present in java.naming.factory.url.pkgs property.
- Author:
- Florent Benoit
Method Summary |
java.lang.Object |
getObjectInstance(java.lang.Object url,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaURLContextFactory
public javaURLContextFactory()
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object url,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
throws java.lang.Exception
- Specified by:
getObjectInstance
in interface javax.naming.spi.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:
- 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.
- Throws:
java.lang.Exception
- if this object factory encountered an exception while
attempting to create an object, and no other object factories are
to be tried.