| java.lang.Object org.apache.harmony.jndi.provider.GenericURLContextFactory
All known Subclasses: org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory, org.apache.harmony.jndi.provider.ldap.ldapURLContextFactory,
GenericURLContextFactory | protected GenericURLContextFactory()(Code) | | Default constructor for subclasses.
|
getObjectInstance | public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable, ?> environment) throws NamingException(Code) | | Lookups the specified object in the underlying context. Underlying
context instance is provided by
GenericURLContextFactory.createURLContext(Hashtable) .
Follows the guidelines for URL context factories described in
ObjectFactory.getObjectInstance(ObjectNameContextHashtable) specification.
If obj is null , just creates and returns
an underlying context.
If obj is a proper URL string, lookups and returns an
object specified by that string.
If obj is an array of URL strings, tries to lookup each of
them sequentially until lookup succeeds, then returns the result. If no
lookup succeeds, throws
NamingException describing the fail of a
last lookup.
name and nameCtx parameters are ignored.
Parameters: obj - Object to lookup, can be null . Parameters: name - Ignored. Parameters: nameCtx - Ignored. Parameters: environment - Environment to use in creating the underlying context, can benull . The object created. throws: ConfigurationException - If obj is neither null nor astring, nor a string array, or is an empty string array. throws: NamingException - If lookup attempt failed. |
|
|