[jboss-cvs] jboss-seam/src/main/org/jboss/seam/intercept ...
Gavin King
gavin.king at jboss.com
Mon Nov 13 15:05:17 EST 2006
User: gavin
Date: 06/11/13 15:05:17
Modified: src/main/org/jboss/seam/intercept
SessionBeanInterceptor.java
Log:
todo
Revision Changes Path
1.7 +2 -1 jboss-seam/src/main/org/jboss/seam/intercept/SessionBeanInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SessionBeanInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/intercept/SessionBeanInterceptor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- SessionBeanInterceptor.java 1 Nov 2006 02:54:02 -0000 1.6
+++ SessionBeanInterceptor.java 13 Nov 2006 20:05:17 -0000 1.7
@@ -79,7 +79,8 @@
else if ( bean.getClass().isAnnotationPresent(Name.class) )
{
//the session bean was obtained by the application from
- //JNDI, so assume the default role
+ //JNDI (or it was an MDB), so assume the default role
+ //TODO: look at more than just @Name, consider components.xml
String defaultComponentName = bean.getClass().getAnnotation(Name.class).value();
init( Seam.componentForName( defaultComponentName ) );
}
More information about the jboss-cvs-commits
mailing list