Joe,
This should do it :-
public class ComponentThatNeedsAnInt {
public ComponentThatNeedsAnInt(int someParam) {
}
}
pico.addComponent("someParam", "1234");
pico
.as
(Characteristics.USE_NAMES).addComponent(ComponentThatNeedsAnInt.class);
Regards,
- Paul
On Jul 3, 2009, at 6:37 PM, joe panico wrote:
> Hello,
>
> I noticed a feature in the release notes:
>
> New (since 2.7):
> Automatic type conversion for named parameters (from String)
>
> How do I use that feature?
>
> thanks,
>
> Joe
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email