From: Bill B. <pat...@us...> - 2003-04-20 23:45:09
|
User: patriot1burke Date: 03/04/20 16:45:06 Modified: src/main/org/jboss/aop/proxy ClassProxyFactory.java Log: more hooks for Introductions Revision Changes Path 1.8 +2 -24 jboss-aop/src/main/org/jboss/aop/proxy/ClassProxyFactory.java Index: ClassProxyFactory.java =================================================================== RCS file: /cvsroot/jboss/jboss-aop/src/main/org/jboss/aop/proxy/ClassProxyFactory.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ClassProxyFactory.java 20 Apr 2003 01:59:00 -0000 1.7 +++ ClassProxyFactory.java 20 Apr 2003 23:45:05 -0000 1.8 @@ -35,7 +35,7 @@ /** * * @author <a href="mailto:bi...@jb...">Bill Burke</a> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ */ public class ClassProxyFactory { @@ -114,10 +114,7 @@ - HashMap allMethods = new HashMap(); - populateMethodTables(allMethods, superclass); - - + HashMap allMethods = org.jboss.aop.MethodHashing.getMethodMap(superclass); Iterator it = allMethods.entrySet().iterator(); while (it.hasNext()) { @@ -134,25 +131,6 @@ } } return proxy.toClass(); - } - - private static void populateMethodTables(HashMap advised, CtClass superclass) - throws Exception - { - if (superclass == null) return; - if (superclass.getName().equals("java.lang.Object")) return; - - populateMethodTables(advised, superclass.getSuperclass()); - - CtMethod[] declaredMethods = superclass.getDeclaredMethods(); - for (int i = 0; i < declaredMethods.length; i++) - { - if (Instrumentor.isAdvisable(declaredMethods[i])) - { - long hash = org.jboss.aop.MethodHashing.methodHash(declaredMethods[i]); - advised.put(new Long(hash), declaredMethods[i]); - } - } } private static void populateMethodTables(HashMap advised, Class superclass) |