[jboss-dev-forums] [Design of EJB 3.0] - Re: JndiInject and confused use of generics for polymorphism
wolfc
do-not-reply at jboss.com
Mon Nov 12 15:56:29 EST 2007
The real problem is that in the old metadata the EnvironmentRefGroup does have jndiRefs, while in the new Environment does not.
So we need to fix that issue. Then interceptors can have JndiInject again.
Then again,
@JndiInject(jndiName="A")
is the same as
@Resource(mappedName="A")
So we might as well chuck it out the window.
Changing the JndiInjectHandler to accept an Environment and do nothing unless it's a JBossEnterpriseBeanMD is just killing the whole generic.
We should have made two handler lists one for Environment and one for JBossEnterpriseBeanMD. With the one for JBossEnterpriseMD containing a deffering handler to the other list.
As seen in the code, I'm not ready yet to make a final decision. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103868#4103868
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103868
More information about the jboss-dev-forums
mailing list