hammant 02/01/04 05:27:23
Modified: armi/src/java/org/apache/commons/armi/server/impl
BCELClassRetriever.java
Log:
updated with some comments stating aims.
Revision Changes Path
1.2 +33 -2
jakarta-commons-sandbox/armi/src/java/org/apache/commons/armi/server/impl/BCELClassRetriever.java
Index: BCELClassRetriever.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/armi/src/java/org/apache/commons/armi/server/impl/BCELClassRetriever.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BCELClassRetriever.java 4 Jan 2002 13:17:31 -0000 1.1
+++ BCELClassRetriever.java 4 Jan 2002 13:27:23 -0000 1.2
@@ -1,8 +1,8 @@
/*
- * $Header:
/home/cvs/jakarta-commons-sandbox/armi/src/java/org/apache/commons/armi/server/impl/BCELClassRetriever.java,v
1.1 2002/01/04 13:17:31 hammant Exp $
- * $Revision: 1.1 $
- * $Date: 2002/01/04 13:17:31 $
+ * $Header:
/home/cvs/jakarta-commons-sandbox/armi/src/java/org/apache/commons/armi/server/impl/BCELClassRetriever.java,v
1.2 2002/01/04 13:27:23 hammant Exp $
+ * $Revision: 1.2 $
+ * $Date: 2002/01/04 13:27:23 $
*
* ====================================================================
*
@@ -90,9 +90,40 @@
*
*
* @author Paul Hammant <a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class BCELClassRetriever extends AbstractMethodHandler implements
ClassRetriever {
+
+ // To give us some focus, this is what we are aiming at,
+ //
+ // A method with a signature of ......
+ //
+ // boolean hello3(short greeting) throws PropertyVetoException, IOException;
+ //
+ // Should generate the BCEL equivalent of .......
+ //
+ // public boolean hello3 (short v0) throws java.beans.PropertyVetoException,
java.io.IOException{
+ // Object[] args = new Object[1];
+ // args[0] = new Short(v0);
+ // try {
+ // Object retVal = armiProcessObjectRequest("hello3(short)",args);
+ // return ((Boolean) retVal).booleanValue();
+ // } catch (Throwable t) {
+ // if (t instanceof java.beans.PropertyVetoException) {
+ // throw (java.beans.PropertyVetoException) t;
+ // } else if (t instanceof java.io.IOException) {
+ // throw (java.io.IOException) t;
+ // } else if (t instanceof RuntimeException) {
+ // throw (RuntimeException) t;
+ // } else if (t instanceof Error) {
+ // throw (Error) t;
+ // } else {
+ // throw new org.apache.commons.armi.common.ArmiInvocationException("Should
never get here" + t.getMessage());
+ // }
+ // }
+ // }
+
+
private HashMap mClasses = new HashMap();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>