There are tons of different ways to coerce values built in to hivemind, but 
I think using the set-property element combined with a value of "ognl:true" 
might work? 

On 9/1/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I've just created my first service and am trying to tie it in with
> HiveMind. I have a boolean property in this service for indicating
> whether or not to run in debug mode. In my app spec I have a meta
> property called "debug" with a current value of "true". In my
> <invoke-factory block> I have a <set-object> that uses the value "app-
> property:debug". Anyway, the problem is that HiveMind is calling my
> setter with a String argument rather than the boolean I'm expecting;
> i.e., there's no type coercion. Is there anyway to coerce the
> types? I'd really rather not have the setter accept strings or write
> some mediator to convert the data types. At that point, it hardly
> seems like I've saved myself any effort or complexity.
> 
> Any help would be appreciated.
> 
> Thanks,
> Kevin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to