[picocontainer-dev] ConfigParameterTestCase / ConfigParameter
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Konstantin,
Yup its very powerful.
I was sold on it when i saw the transparent String->File converter :-)
However .......
container.addComponent("configured",
ExternallyConfiguredComponent.class,
new ConfigParameter("numericProperty"),
new ConfigParameter("stringProperty"),
new ConfigParameter("stringProperty"),
new ConfigParameter("doubleProperty")
);
... is not pretty, if its the only way of achieving this.
Can you see if you can do ......
container.as
(Characteristics.ADAPTIVE_PARAMETERS).addComponent("configured",
ExternallyConfiguredComponent.class)
... as well as what you have ?
It will give you a chance to see how the system works properties
works :)
If you can achieve it then I'm happy trimming the bad bits from
ArgumentativePicoContainer and merging efforts.
Regards,
- Paul