Class DefaultDirObjectFactory
java.lang.Object
org.springframework.ldap.core.support.DefaultDirObjectFactory
- All Implemented Interfaces:
DirObjectFactory,ObjectFactory
Default implementation of the DirObjectFactory interface. Creates a
DirContextAdapter from the supplied arguments.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) final ObjectgetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs)
-
Field Details
-
JNDI_ENV_BASE_PATH_KEY
Deprecated.UseBaseLdapNameAwareandBaseLdapPathBeanPostProcessorinstead.Key to use in the ContextSource implementation to store the value of the base path suffix, if any, in the Ldap Environment.- See Also:
-
-
Constructor Details
-
DefaultDirObjectFactory
public DefaultDirObjectFactory()
-
-
Method Details
-
getObjectInstance
public final Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) throws Exception- Specified by:
getObjectInstancein interfaceDirObjectFactory- Throws:
Exception
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception- Specified by:
getObjectInstancein interfaceObjectFactory- Throws:
Exception
-
BaseLdapNameAwareandBaseLdapPathBeanPostProcessorinstead.