Hi all.

I'm trying to pass a map of values into a Hivemind service and I'm hitting 
problems. I'm coming from Spring, so the Spring version looks like this:

  <bean id="userDetailsService" 
class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
      <property name="userMap">
        <value>
          [EMAIL PROTECTED],ROLE_SUPERUSER
          [EMAIL PROTECTED],ROLE_DATA_ADMINISTRATOR
          fred,ROLE_SUPPORT
        </value>
      </property>
  </bean>

Spring translates the "value" attribute into a Properties object with the 
specified values. Now that I'm in Hivemind, how do I represent the map (its 
treated as a Properties object within the InMemoryDaoImpl) in Hivemind? I've 
tried the code below but I get an error that the value attribute is not being 
set. I can't find any Hivemind documentation about how to specify that the 
value is a Properties object (or a map)

  <implementation service-id="hivemind.acegi.dao.UserDetailsService">
    <invoke-factory>
      <construct class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
        <set-object property="userMap">
          <value>
            [EMAIL PROTECTED]
            [EMAIL PROTECTED]
            fred=ROLE_SUPPORT
          </value>
        </set-object>
      </construct>
    </invoke-factory>
  </implementation>

I'm suspecting that I need to use a Property Editor to translate some text into 
a Properties object but I'm in the dark here. Any help would be appreciated.

Thanks,

Rob Cole

---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to