public final class OdmManagerImplFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean
OdmManagerImpl instances.
Typical configuration would appear as follows:
<bean id="odmManager" class="org.springframework.ldap.odm.core.impl.OdmManagerImplFactoryBean">
<property name="converterManager" ref="converterManager" />
<property name="contextSource" ref="contextSource" />
<property name="managedClasses">
<set>
<value>org.myorg.myldapentries.Person</value>
<value>org.myorg.myldapentries.OrganizationalUnit</value>
</set>
</property>
</bean>
| Constructor and Description |
|---|
OdmManagerImplFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setContextSource(ContextSource contextSource)
Set the ContextSource to use to interact with the LDAP directory.
|
void |
setConverterManager(ConverterManager converterManager)
Set the ConverterManager to use to convert between LDAP
and Java representations of attributes.
|
void |
setManagedClasses(Set<Class<?>> managedClasses)
Set the list of
org.springframework.ldap.odm.annotations
annotated classes the OdmManager will process. |
public void setContextSource(ContextSource contextSource)
contextSource - The ContextSource to use.public void setManagedClasses(Set<Class<?>> managedClasses)
org.springframework.ldap.odm.annotations
annotated classes the OdmManager will process.managedClasses - The list of classes to manage.public void setConverterManager(ConverterManager converterManager)
converterManager - The ConverterManager to use.public Object getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBeanExceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanCopyright © 2005–2021 The Spring LDAP Framework. All rights reserved.