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 Object
getObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs)
-
Field Details
-
JNDI_ENV_BASE_PATH_KEY
Deprecated.UseBaseLdapNameAware
andBaseLdapPathBeanPostProcessor
instead.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:
getObjectInstance
in interfaceDirObjectFactory
- Throws:
Exception
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception- Specified by:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
-
BaseLdapNameAware
andBaseLdapPathBeanPostProcessor
instead.