[jboss-cvs] JBossAS SVN: r61148 - in projects/aop/trunk/aop/src/main/org/jboss/aop: joinpoint and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 6 14:43:36 EST 2007
Author: kabir.khan at jboss.com
Date: 2007-03-06 14:43:35 -0500 (Tue, 06 Mar 2007)
New Revision: 61148
Added:
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerConstructorInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByConInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructionInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructorInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IFieldInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IJoinPointInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByConInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodInfo.java
Modified:
projects/aop/trunk/aop/src/main/org/jboss/aop/CallerConstructorInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/CallerMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/ConByConInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/ConByMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructionInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructorInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/FieldInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/JoinPointInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByConInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByMethodInfo.java
projects/aop/trunk/aop/src/main/org/jboss/aop/MethodInfo.java
Log:
[JBAOP-373] Extract interfaces to be used for JoinPOintInfo when used with before/after/throwing
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/CallerConstructorInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/CallerConstructorInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/CallerConstructorInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -22,6 +22,7 @@
package org.jboss.aop;
import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.ICallerConstructorInfo;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
@@ -33,7 +34,7 @@
* @version $Revision$
*
**/
-public abstract class CallerConstructorInfo extends JoinPointInfo
+public abstract class CallerConstructorInfo extends JoinPointInfo implements ICallerConstructorInfo
{
private final Constructor constructor;
private final Class callingClass;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/CallerMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/CallerMethodInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/CallerMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -22,6 +22,7 @@
package org.jboss.aop;
import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.ICallerMethodInfo;
import java.lang.reflect.Method;
@@ -32,7 +33,7 @@
* @version $Revision$
*
**/
-public abstract class CallerMethodInfo extends JoinPointInfo
+public abstract class CallerMethodInfo extends JoinPointInfo implements ICallerMethodInfo
{
private final Class callingClass;
private final Class calledClass;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/ConByConInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/ConByConInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/ConByConInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -26,6 +26,7 @@
import org.jboss.aop.advice.Interceptor;
import org.jboss.aop.joinpoint.ConstructorCalledByConstructorJoinpoint;
+import org.jboss.aop.joinpoint.IConByConInfo;
import org.jboss.aop.joinpoint.Joinpoint;
/**
@@ -33,7 +34,7 @@
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
* @version $Revision$
*/
-public class ConByConInfo extends CallerConstructorInfo
+public class ConByConInfo extends CallerConstructorInfo implements IConByConInfo
{
private final int callingIndex;
private final Constructor calling;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/ConByMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/ConByMethodInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/ConByMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -35,7 +35,7 @@
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
* @version $Revision$
*/
-public class ConByMethodInfo extends CallerConstructorInfo
+public class ConByMethodInfo extends CallerConstructorInfo implements IConByMethodInfo
{
private final long callingMethodHash;
private final Method callingMethod;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructionInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructionInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructionInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -34,7 +34,7 @@
* @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
* @version $Revision$
*/
-public class ConstructionInfo extends JoinPointInfo
+public class ConstructionInfo extends JoinPointInfo implements IConstructionInfo
{
private Constructor constructor;
private int index;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructorInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructorInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/ConstructorInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -35,7 +35,7 @@
* @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
* @version $Revision$
*/
-public class ConstructorInfo extends JoinPointInfo
+public class ConstructorInfo extends JoinPointInfo implements IConstructorInfo
{
private Method wrapper;
private Constructor constructor;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/FieldInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/FieldInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/FieldInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -38,7 +38,7 @@
* @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
* @version $Revision$
*/
-public class FieldInfo extends JoinPointInfo
+public class FieldInfo extends JoinPointInfo implements IFieldInfo
{
private int index;
private Field advisedField;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/JoinPointInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/JoinPointInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/JoinPointInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -25,9 +25,10 @@
import java.util.ArrayList;
import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.IJoinPointInfo;
import org.jboss.aop.joinpoint.Joinpoint;
-public abstract class JoinPointInfo
+public abstract class JoinPointInfo implements IJoinPointInfo
{
private Interceptor[] interceptors;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByConInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByConInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByConInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -34,7 +34,7 @@
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
* @version $Revision$
*/
-public class MethodByConInfo extends CallerMethodInfo
+public class MethodByConInfo extends CallerMethodInfo implements IMethodByConInfo
{
private final int callingIndex;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByMethodInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/MethodByMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -34,7 +34,7 @@
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
* @version $Revision$
*/
-public class MethodByMethodInfo extends CallerMethodInfo
+public class MethodByMethodInfo extends CallerMethodInfo implements IMethodByMethodInfo
{
private final long callingMethodHash;
private final Method callingMethod;
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/MethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/MethodInfo.java 2007-03-06 19:12:07 UTC (rev 61147)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/MethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -31,7 +31,7 @@
/**
* This class is here to eliminate a hash lookup in invokeMethod
*/
-public class MethodInfo extends JoinPointInfo
+public class MethodInfo extends JoinPointInfo implements IMethodInfo
{
private Method advisedMethod;
private Method unadvisedMethod;
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerConstructorInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerConstructorInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerConstructorInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * Represents calls made to a constructor by either a method or a constructor
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ICallerConstructorInfo extends IJoinPointInfo
+{
+ /**
+ * Gets the constructor being called
+ */
+ Constructor getConstructor();
+
+ /**
+ * Gets the class making the call
+ */
+ Class getCallingClass();
+
+ /**
+ * Gets the class being called
+ */
+ Class getCalledClass();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerMethodInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/ICallerMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Method;
+
+/**
+ * Represents calls made to a method or a constructor by either a method or a constructor
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ICallerMethodInfo extends IJoinPointInfo
+{
+ /**
+ * Gets the class containing the method/constructor making the call
+ */
+ Class getCallingClass();
+
+ /**
+ * Gets the class containing the method being called
+ */
+ Class getCalledClass();
+
+ /**
+ * Gets the method being called
+ */
+ Method getMethod();
+
+ /**
+ * Gets the method hash of the method being called
+ */
+ long getCalledMethodHash();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByConInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByConInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByConInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * Represents a call to a constructor made by a constructor
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IConByConInfo extends ICallerConstructorInfo
+{
+ /**
+ * Gets the calling constructor
+ */
+ Constructor getCalling();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByMethodInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConByMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Method;
+
+/**
+ * Represents a call to a constructor made by a method
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IConByMethodInfo extends ICallerConstructorInfo
+{
+ /**
+ * Gets the method hash of the calling method
+ */
+ long getCallingMethodHash();
+
+ /**
+ * Gets the method making the call
+ */
+ Method getCallingMethod();
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructionInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructionInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructionInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * Represents a call made on a constructor woven with the
+ * <i>construction</i> syntax
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IConstructionInfo extends IJoinPointInfo
+{
+
+ /**
+ * Gets the constructor being called
+ */
+ Constructor getConstructor();
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructorInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructorInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IConstructorInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * Represents a contructor call with an <i>execution</i>
+ * pointcut
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IConstructorInfo extends IJoinPointInfo
+{
+ /**
+ * Gets the constructor being called
+ */
+ Constructor getConstructor();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IFieldInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IFieldInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IFieldInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Field;
+
+/**
+ * Represents a field read or write
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IFieldInfo extends IJoinPointInfo
+{
+ /**
+ * Gets the field being read or written
+ */
+ Field getAdvisedField();
+
+ /**
+ * Gets whether we are reading the field
+ */
+ boolean isRead();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IJoinPointInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IJoinPointInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IJoinPointInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import org.jboss.aop.Advisor;
+
+/**
+ * Represents a call made on a joinpoint
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IJoinPointInfo
+{
+ /**
+ * Gets the advisor
+ */
+ Advisor getAdvisor();
+
+ /**
+ * Gets the advisor's class
+ */
+ Class getClazz();
+
+ /**
+ * Resolves metadata on the class
+ */
+ Object resolveClassMetaData(Object key, Object attr);
+
+ /**
+ * Resolves annotations for the class
+ */
+ Object resolveClassAnnotation(Class annotation);
+
+ /**
+ * Resolves annotations on the particular joinpoint (field, constructor, method etc.)
+ */
+ Object resolveAnnotation(Class annotation);
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByConInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByConInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByConInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * Represents a method being called by a constructor
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IMethodByConInfo extends ICallerMethodInfo
+{
+ /**
+ * Gets the constructor making the call
+ */
+ Constructor getCalling();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByMethodInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodByMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Method;
+
+/**
+ * Represents a method being called by a method
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IMethodByMethodInfo extends ICallerMethodInfo
+{
+ /**
+ * Gets the method hash of the method making the call
+ */
+ long getCallingMethodHash();
+
+ /**
+ * Gets the method making the call
+ */
+ Method getCallingMethod();
+
+}
\ No newline at end of file
Added: projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodInfo.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodInfo.java (rev 0)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/joinpoint/IMethodInfo.java 2007-03-06 19:43:35 UTC (rev 61148)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aop.joinpoint;
+
+import java.lang.reflect.Method;
+
+/**
+ * Represents a method call with an <i>execution</i>
+ * pointcut
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IMethodInfo extends IJoinPointInfo
+{
+ /**
+ * Gets the method being called
+ */
+ Method getAdvisedMethod();
+
+ /**
+ * Gets the hash of the method being called
+ */
+ long getHash();
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list