[jboss-cvs] jboss-seam/src/main/org/jboss/seam/interceptors ...
Gavin King
gavin.king at jboss.com
Mon Jun 25 01:54:36 EDT 2007
User: gavin
Date: 07/06/25 01:54:36
Modified: src/main/org/jboss/seam/interceptors
MethodContextInterceptor.java
Log:
this and component references in method context
Revision Changes Path
1.7 +4 -0 jboss-seam/src/main/org/jboss/seam/interceptors/MethodContextInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MethodContextInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/MethodContextInterceptor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- MethodContextInterceptor.java 25 Jun 2007 05:49:18 -0000 1.6
+++ MethodContextInterceptor.java 25 Jun 2007 05:54:36 -0000 1.7
@@ -1,5 +1,7 @@
package org.jboss.seam.interceptors;
+import java.lang.reflect.Method;
+
import org.jboss.seam.Component;
import org.jboss.seam.annotations.AroundInvoke;
import org.jboss.seam.annotations.intercept.Interceptor;
@@ -25,11 +27,13 @@
Component comp = getComponent();
String name = comp.getName();
Object target = ctx.getTarget();
+ Method method = ctx.getMethod();
Context outerMethodContext = Lifecycle.beginMethod();
try
{
Contexts.getMethodContext().set(name, target);
Contexts.getMethodContext().set("org.jboss.seam.this", target);
+ Contexts.getMethodContext().set("org.jboss.seam.method", method);
Contexts.getMethodContext().set("org.jboss.seam.component", comp);
return ctx.proceed();
}
More information about the jboss-cvs-commits
mailing list