[jboss-dev-forums] [Design of EJB 3.0] - Re: EJBTHREE-1669 : @Service tutorial on JBoss-5.0 GA
jaikiran
do-not-reply at jboss.com
Sat Jan 10 04:24:27 EST 2009
"jaikiran" wrote :
|
| 1) What does @Depends signify at a field/method level? I thought @Depends was more for specifying a dependency. But going by the code in the DependsMethodInjector/DependsFieldInjector, it seems to be doing injection.
|
Just read the javadoc of org.jboss.ejb3.annotation.Depends:
anonymous wrote :
| Annotation for specifying a deployment dependency for a bean. If placed on a setter method or field an MBean proxy will be injected as well.
So injection is intentional.
"jaikiran" wrote :
| 2) Is this a valid use of @Depends?
|
Based on the above javadoc statement, looks like a valid usecase.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200759#4200759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200759
More information about the jboss-dev-forums
mailing list