Spring LDAP

org.springframework.ldap.odm.core.impl
Class OdmManagerImplFactoryBean

java.lang.Object
  extended by org.springframework.ldap.odm.core.impl.OdmManagerImplFactoryBean
All Implemented Interfaces:
FactoryBean

public final class OdmManagerImplFactoryBean
extends Object
implements FactoryBean

A Spring Factory bean which creates 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>
 

Author:
Paul Harvey <paul.at.pauls-place.me.uk>

Constructor Summary
OdmManagerImplFactoryBean()
           
 
Method Summary
 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 setLdapOperations(LdapOperations ldapOperations)
          Set the LdapOperations instance to use to interact with the LDAP directory.
 void setManagedClasses(Set<Class<?>> managedClasses)
          Set the list of org.springframework.ldap.odm.annotations annotated classes the OdmManager will process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OdmManagerImplFactoryBean

public OdmManagerImplFactoryBean()
Method Detail

setLdapOperations

public void setLdapOperations(LdapOperations ldapOperations)
Set the LdapOperations instance to use to interact with the LDAP directory.

Parameters:
ldapOperations - the LdapOperations instance to use.

setContextSource

public void setContextSource(ContextSource contextSource)
Set the ContextSource to use to interact with the LDAP directory.

Parameters:
contextSource - The ContextSource to use.

setManagedClasses

public void setManagedClasses(Set<Class<?>> managedClasses)
Set the list of org.springframework.ldap.odm.annotations annotated classes the OdmManager will process.

Parameters:
managedClasses - The list of classes to manage.

setConverterManager

public void setConverterManager(ConverterManager converterManager)
Set the ConverterManager to use to convert between LDAP and Java representations of attributes.

Parameters:
converterManager - The ConverterManager to use.

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

Spring LDAP