You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jc...@apache.org on 2008/02/21 20:13:04 UTC
svn commit: r629936 -
/commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java
Author: jcarman
Date: Thu Feb 21 11:13:00 2008
New Revision: 629936
URL: http://svn.apache.org/viewvc?rev=629936&view=rev
Log:
Added javadocs and made factory method package-private as it is not intended to be part of the public API.
Modified:
commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java
Modified: commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java?rev=629936&r1=629935&r2=629936&view=diff
==============================================================================
--- commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java (original)
+++ commons/proper/proxy/branches/proxy-1.0-work/src/main/java/org/apache/commons/proxy/factory/javassist/JavassistInvocation.java Thu Feb 21 11:13:00 2008
@@ -31,6 +31,10 @@
import java.util.WeakHashMap;
/**
+ * A Javassist-based {@link Invocation} implementation. This class actually serves as the superclass
+ * for all Javassist-based method invocations. Subclasses are dynamically created to deal with
+ * specific interface methods.
+ *
* @author James Carman
* @since 1.0
*/
@@ -137,7 +141,15 @@
return cache;
}
- public synchronized static Class getMethodInvocationClass( ClassLoader classLoader,
+ /**
+ * Returns a method invocation class specifically coded to invoke the supplied interface method.
+ *
+ * @param classLoader the classloader to use
+ * @param interfaceMethod the interface method
+ * @return a method invocation class specifically coded to invoke the supplied interface method
+ * @throws CannotCompileException if a compilation error occurs
+ */
+ synchronized static Class getMethodInvocationClass( ClassLoader classLoader,
Method interfaceMethod )
throws CannotCompileException
{