public class LoginConnectionFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
Constructor and Description |
---|
LoginConnectionFactory()
Instantiate this URLConnection factory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
Creates an instance of
LoginConnection using the location or
reference information specified. |
public LoginConnectionFactory()
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment) throws java.lang.Exception
LoginConnection
using the location or
reference information specified. Special requirements of this
LoginConnection
are supplied using environment. An example of such
an environment property is user identity information.getObjectInstance
in interface javax.naming.spi.ObjectFactory
obj
- The possibly null object containing location or reference
information that can be used in creating an object.name
- The name of this object relative to nameCtx, or null
if no name is specified.nameCtx
- The context relative to which the name parameter is
specified, or null if name is relative to the default
initial context.environment
- The possibly null environment that is used in
creating the object.LoginConnection
created; null if an object cannot be created.{@link
- Exception}if an error was encountered while attempting to
create the LoginConnectionjava.lang.Exception