I added constructor injection for EJBs and Interceptors into OpenEJB. We could probably do the same for servlets, filters and listeners if we use xbean-reflect to create all of those.

The trick would be that the functionality wouldn't work unless they compiled the code with debug. XBean uses the debug table to scrape out the constructor param names. We could potentially add support of the @java.beans.ParameterNames annotation, but that's only available in Java 6.

Add it? Don't add it? Add it but put a big disclaimer on the doc for it?

Thoughts?

-David

Reply via email to