public class jrmiURLContextFactory extends Object implements ObjectFactory
Constructor and Description |
---|
jrmiURLContextFactory()
Constructs a new jrmiURLContextFactory
|
public jrmiURLContextFactory()
public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws 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 lookup 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 ObjectFactory
obj
- the URL object to be looked up;name
- ignored;ctx
- ignored;env
- a hashtable representing the environment.Exception