net.sf.ldaptemplate.support
Class DefaultDirObjectFactory
java.lang.Object
net.sf.ldaptemplate.support.DefaultDirObjectFactory
- All Implemented Interfaces:
- javax.naming.spi.DirObjectFactory, javax.naming.spi.ObjectFactory
- public class DefaultDirObjectFactory
- extends java.lang.Object
- implements javax.naming.spi.DirObjectFactory
Default implementation of the DirObjectFactory interface. Creates a
DirContextAdapter from the supplied arguments.
- Author:
- Mattias Arthursson
Field Summary |
static java.lang.String |
JNDI_ENV_BASE_PATH_KEY
Key to use in the ContextSource implementation to store the value of the
base path suffix, if any, in the Ldap Environment. |
Method Summary |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
Returns null. |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment,
javax.naming.directory.Attributes attrs)
Creates a DirContextAdapter from the supplied arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_ENV_BASE_PATH_KEY
public static final java.lang.String JNDI_ENV_BASE_PATH_KEY
- Key to use in the ContextSource implementation to store the value of the
base path suffix, if any, in the Ldap Environment.
- See Also:
- Constant Field Values
DefaultDirObjectFactory
public DefaultDirObjectFactory()
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment,
javax.naming.directory.Attributes attrs)
throws java.lang.Exception
- Creates a DirContextAdapter from the supplied arguments.
- Specified by:
getObjectInstance
in interface javax.naming.spi.DirObjectFactory
- Parameters:
obj
- name
- nameCtx
- environment
- attrs
-
- Returns:
- a new DirContextAdapter from the attributes and name.
- Throws:
java.lang.Exception
getObjectInstance
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
- Returns null.
- Specified by:
getObjectInstance
in interface javax.naming.spi.ObjectFactory
- Parameters:
obj
- name
- nameCtx
- environment
-
- Returns:
- null.
- Throws:
java.lang.Exception
Copyright © 2006 Jayway AB. All Rights Reserved.