Hi,
It's already supported, just not documented yet:
Add 'constructor-parameter="constructor parameter index (0 based)"' in your
<requires> or <property> such as in:
<requires constructor-parameter="0"/>
<properties>
<property constructor-parameter="1" value="Hello"/>
</properties>
for a class containing:
public Foo(LogService log, String message) {
...
}
Regards,
Clement
On 22.06.2011, at 14:55, Andrew Mettke wrote:
> Hi,
>
> I have a question concerning iPOJO and constructor injection. In the
> documentation I see that constructor injection was introduced with the
> 1.7.0-SNAPSHOT of iPOJO and that you are able to mark constructor
> parameters using the @Requires annotation. However absent from
> documentation is how to perform constructor injection using XML
> metadata. I'm currently using version 1.8.0 of iPOJO and I can't seem
> to find any attributes in the Requires element schema that would make
> sense for constructor injection. I was wondering if 1.8.0 support
> constructor injection via XML metadata? If so, could you provide a
> simple example? If not, is adding the ability to specify constructor
> injection in XML metadata going to be in a future release?
>
> Regards,
> Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]