You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "ryan@unrighteousdominion.com" <ry...@unrighteousdominion.com> on 2006/11/02 04:40:59 UTC

Re: setting list parameters

$25 Amazon Gift Certificate to the person that helps me solve this.

I've got one right here.

ryan@unrighteousdominion.com wrote:
> I have a service that has method like "setMyCustomServices(List 
> services)" but I can't figure out how to set this in the hivemind 
> module descriptor. This is what I tried:
>
> <service-point id="SomeService" interface="SomeServiceInterface">
>        <invoke-factory>
>            <construct class="SomeServiceImpl" >
>                <set-service property="myCustomServices">
>                    <list>
>                        <service-id>service.MyCustomServiceX</service-id>
>                        <service-id>service.MyCustomServiceY</service-id>
>                        <service-id>service.MyCustomServiceZ</service-id>
>                    </list>
>                </set-service>
>            </construct>
>        </invoke-factory>
>    </service-point>
>
> I looked at using configuration points, but that seems like more 
> complexity than is necessary.
>
> Anyone know the best way to do this?
>
> Thanks
>
>