[jboss-cvs] JBossAS SVN: r60365 - trunk/system/src/main/org/jboss/profileservice/aop.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 7 02:19:22 EST 2007
Author: scott.stark at jboss.org
Date: 2007-02-07 02:19:22 -0500 (Wed, 07 Feb 2007)
New Revision: 60365
Modified:
trunk/system/src/main/org/jboss/profileservice/aop/MainDeployerAspect.java
Log:
Add an invoke method
Modified: trunk/system/src/main/org/jboss/profileservice/aop/MainDeployerAspect.java
===================================================================
--- trunk/system/src/main/org/jboss/profileservice/aop/MainDeployerAspect.java 2007-02-07 07:18:55 UTC (rev 60364)
+++ trunk/system/src/main/org/jboss/profileservice/aop/MainDeployerAspect.java 2007-02-07 07:19:22 UTC (rev 60365)
@@ -22,6 +22,7 @@
package org.jboss.profileservice.aop;
import org.jboss.aop.joinpoint.Invocation;
+import org.jboss.aop.joinpoint.MethodInvocation;
/**
* Placeholder
@@ -36,6 +37,17 @@
return this.getClass().getName();
}
+ public Object invoke(Invocation invocation) throws Throwable
+ {
+ MethodInvocation mi = (MethodInvocation) invocation;
+ String methodName = mi.getActualMethod().getName();
+ Object value = null;
+ if( methodName.equals("process") )
+ value = process(mi);
+ else
+ value = invocation.invokeNext();
+ return value;
+ }
public Object process(Invocation invocation) throws Throwable
{
return invocation.invokeNext();
More information about the jboss-cvs-commits
mailing list