|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jeremie.libs.services.registry.jndi.jrmi.jrmiURLContextFactory
Provides an implementation of a JNDI object factory for constructing Jeremie registry URL contexts.
Constructor Summary | |
jrmiURLContextFactory()
Constructs a new jrmiURLContextFactory |
Method Summary | |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
Creates a Jeremie registry URL context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public jrmiURLContextFactory()
Method Detail |
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable env) throws java.lang.Exception
It first creates a Jeremie registry URL context from the environment, which is returned if the object is null. If the object is a string, it looks up the string in the context. If the object is an array of strings, then it returns the first successful lookûp of one of these strings in the context.
The input object must be either null, a string, or an array of strings.
getObjectInstance
in interface javax.naming.spi.ObjectFactory
obj
- the URL object to be looked up;name
- ignored;ctx
- ignored;env
- a hashtable representing the environment.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |