[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Mon Oct 9 04:30:27 EDT 2006
User: gavin
Date: 06/10/09 04:30:27
Modified: src/main/org/jboss/seam Component.java
Log:
JBSEAM-377, @Asynchronous and friends
Revision Changes Path
1.180 +5 -3 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -b -r1.179 -r1.180
--- Component.java 9 Oct 2006 00:50:32 -0000 1.179
+++ Component.java 9 Oct 2006 08:30:27 -0000 1.180
@@ -78,6 +78,7 @@
import org.jboss.seam.databinding.DataBinder;
import org.jboss.seam.databinding.DataSelector;
import org.jboss.seam.ejb.SeamInterceptor;
+import org.jboss.seam.interceptors.AsynchronousInterceptor;
import org.jboss.seam.interceptors.BijectionInterceptor;
import org.jboss.seam.interceptors.BusinessProcessInterceptor;
import org.jboss.seam.interceptors.ClientSideInterceptor;
@@ -108,7 +109,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.179 $
+ * @version $Revision: 1.180 $
*/
@Scope(ScopeType.APPLICATION)
public class Component
@@ -670,6 +671,7 @@
private void initDefaultInterceptors()
{
+ addInterceptor( new Interceptor( new AsynchronousInterceptor(), this ) );
addInterceptor( new Interceptor( new ExceptionInterceptor(), this ) );
addInterceptor( new Interceptor( new RemoveInterceptor(), this ) );
addInterceptor( new Interceptor( new EventInterceptor(), this ) );
@@ -1617,10 +1619,10 @@
public Object callComponentMethod(Object instance, Method method) {
Class[] paramTypes = method.getParameterTypes();
- String createMethodName = method.getName();
+ String methodName = method.getName();
try
{
- Method interfaceMethod = instance.getClass().getMethod(createMethodName, paramTypes);
+ Method interfaceMethod = instance.getClass().getMethod(methodName, paramTypes);
if ( paramTypes.length==0 )
{
return Reflections.invokeAndWrap( interfaceMethod, instance );
More information about the jboss-cvs-commits
mailing list