AnsweredAssumed Answered

How to use custom ldapGroupManagerFactory

Question asked by ismail1 on Dec 25, 2013
Latest reply on Dec 27, 2013 by jbarrez
I d like to extend ldapGroupManagerFactory to use my own implemnetation extended from default. But it needs a constructor of ldapConfigurator and causes a cyclic dependency.

Here is my configuration:

  <bean id="ldapQueryBuilderKKB" class="org.activiti.demo.util.LdapQueryBuilderKKB" />
  <bean id="ldapGroupManagerFactoryKKB" class="org.activiti.demo.util.LdapGroupManagerFactoryKKB" />
     <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
        <property name="configurators">
              <bean class="org.activiti.ldap.LDAPConfigurator" id="ldapConfigurator">
                   <property name="ldapGroupManagerFactory">
         <ref local="ldapGroupManagerFactoryKKB"/>
              <property name="ldapQueryBuilder">
               <ref local="ldapQueryBuilderKKB"/>

This configuration complains about empty constructor, needs a constructor of ldapConfigurator as parameter.
But when i pass configurator like below ( which i referenced ldapGroupManagerFactory from) will casue a cyclic dependency.

   <bean id="ldapGroupManagerFactoryKKB" class="org.activiti.demo.util.LdapGroupManagerFactoryKKB" >
     <constructor-arg ref="ldapConfigurator"/>

Any idea about how to resolve this please?