[jboss-cvs] JBossAS SVN: r59702 - branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 17 11:43:51 EST 2007
Author: flavia.rainone at jboss.com
Date: 2007-01-17 11:43:50 -0500 (Wed, 17 Jan 2007)
New Revision: 59702
Modified:
branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ClassAdvisor.java
Log:
[JBAOP-336] Makes current class advisor backwards compatible with previous versions, allowing the
interception of calls made inside constructors without need for a callingObject.
Modified: branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ClassAdvisor.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ClassAdvisor.java 2007-01-17 16:35:53 UTC (rev 59701)
+++ branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ClassAdvisor.java 2007-01-17 16:43:50 UTC (rev 59702)
@@ -1759,8 +1759,30 @@
{
return invokeConstructorCaller((MethodByConInfo)info, null, target, args);
}
-
+ /**
+ *@deprecated
+ */
+ public Object invokeConstructorCaller(int callingIndex, Object callingObject, Object target, Object[] args, CallerMethodInfo info)
+ throws Throwable
+ {
+ return invokeConstructorCaller((MethodByConInfo)info, callingObject, target, args);
+ }
+
+ /**
+ * @deprecated
+ *
+ * Prefer using the version with <code>callingObject</code> instead of this one,
+ * since this object is available for call invocations made inside constructors.
+ *
+ * @see #invokeConstructorCaller(MethodByConInfo, Object, Object, Object[])
+ */
+ public Object invokeConstructorCaller(MethodByConInfo info, Object target, Object[] args)
+ throws Throwable
+ {
+ return invokeConstructorCaller(info, null, target, args);
+ }
+
public Object invokeConstructorCaller(MethodByConInfo info, Object callingObject, Object target, Object[] args)
throws Throwable
{
@@ -1779,6 +1801,29 @@
return invokeConCalledByCon((ConByConInfo)info, null, args);
}
+ /**
+ *@deprecated
+ */
+ public Object invokeConCalledByCon(int callingIndex, Object callingObject, Object[] args, CallerConstructorInfo info)
+ throws Throwable
+ {
+ return invokeConCalledByCon((ConByConInfo)info, null, args);
+ }
+
+ /**
+ * @deprecated
+ *
+ * Prefer using the version with <code>callingObject</code> instead of this one,
+ * since this object is available for call invocations made inside constructors.
+ *
+ * @see #invokeConCalledByCon(ConByConInfo, Object, Object[])
+ */
+ public Object invokeConCalledByCon(ConByConInfo info, Object[] args)
+ throws Throwable
+ {
+ return this.invokeConCalledByCon(info, null, args);
+ }
+
public Object invokeConCalledByCon(ConByConInfo info, Object callingObject, Object[] args)
throws Throwable
{
More information about the jboss-cvs-commits
mailing list