[jboss-dev-forums] [Design of POJO Server] - Re: Still have insufficient separation of metadata
adrian@jboss.org
do-not-reply at jboss.com
Mon Mar 5 08:10:02 EST 2007
Also, there is no reason why the dependency name cannot be null.
Ales added support for this to the MC metadata such that a null name
means to match the interface of the property with a singleton implementator.
(This is similar to the Nanocontainer approach to IOC).
| <property name="TransactionManager"><inject/></property>
|
| or the equivalent annotation
|
| @Inject
| public void setTransactionManager(TransactionManager tm) {}
|
But the same processing has not been added to the JMX injection handling.
If it were, the error reporting would be better, e.g. cannot resolve
the interface of the jmx attribute to a singleton.
(Although that is not what was intended in this case :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025034#4025034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025034
More information about the jboss-dev-forums
mailing list