commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/generator ProxyGeneratorImpl.java
Date Mon, 25 Feb 2002 20:32:57 GMT
hammant     02/02/25 12:32:57

  Modified:    altrmi/src/java/org/apache/commons/altrmi/client/impl
                        BaseServedObject.java
               altrmi/src/java/org/apache/commons/altrmi/generator
                        ProxyGeneratorImpl.java
  Log:
  renames for simplicity
  
  Revision  Changes    Path
  1.9       +7 -7      jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/client/impl/BaseServedObject.java
  
  Index: BaseServedObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/client/impl/BaseServedObject.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BaseServedObject.java	2 Feb 2002 12:18:02 -0000	1.8
  +++ BaseServedObject.java	25 Feb 2002 20:32:56 -0000	1.9
  @@ -30,7 +30,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    */
   public final class BaseServedObject {
   
  @@ -78,7 +78,7 @@
       }
   
       /**
  -     * Method altrmiProcessObjectRequest
  +     * Method processObjectRequestGettingFacade
        *
        *
        * @param methodSignature
  @@ -90,7 +90,7 @@
        * @throws Throwable
        *
        */
  -    public Object altrmiProcessObjectRequestGettingFacade(
  +    public Object processObjectRequestGettingFacade(
               String methodSignature, Object[] args, String objectName) throws Throwable
{
   
           boolean arrayRetVal = objectName.endsWith("[]");
  @@ -168,7 +168,7 @@
       }
   
       /**
  -     * Method altrmiProcessObjectRequest
  +     * Method processObjectRequest
        *
        *
        * @param methodSignature
  @@ -179,7 +179,7 @@
        * @throws Throwable
        *
        */
  -    public Object altrmiProcessObjectRequest(String methodSignature, Object[] args)
  +    public Object processObjectRequest(String methodSignature, Object[] args)
               throws Throwable {
   
           MethodRequest request = new MethodRequest(mPublishedServiceName, mObjectName,
  @@ -201,7 +201,7 @@
       }
   
       /**
  -     * Method altrmiProcessVoidRequest
  +     * Method processVoidRequest
        *
        *
        * @param methodSignature
  @@ -210,7 +210,7 @@
        * @throws Throwable
        *
        */
  -    public void altrmiProcessVoidRequest(String methodSignature, Object[] args) throws
Throwable {
  +    public void processVoidRequest(String methodSignature, Object[] args) throws Throwable
{
   
           MethodRequest request = new MethodRequest(mPublishedServiceName, mObjectName,
                                                     methodSignature, args, mReferenceID,
mSession);
  
  
  
  1.4       +4 -4      jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/generator/ProxyGeneratorImpl.java
  
  Index: ProxyGeneratorImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/altrmi/src/java/org/apache/commons/altrmi/generator/ProxyGeneratorImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ProxyGeneratorImpl.java	24 Feb 2002 11:04:32 -0000	1.3
  +++ ProxyGeneratorImpl.java	25 Feb 2002 20:32:56 -0000	1.4
  @@ -32,7 +32,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class ProxyGeneratorImpl extends AbstractMethodHandler implements ProxyGenerator
{
   
  @@ -277,21 +277,21 @@
                       mClassSource.println("    try {");
   
                       if (rClass.equals("void")) {
  -                        mClassSource.println("      mBaseServedObject.altrmiProcessVoidRequest(\""
  +                        mClassSource.println("      mBaseServedObject.processVoidRequest(\""
                                                + methodSignature.toString() + "\",args);");
                       } else {
                           boolean isFacadeRetVal = isAdditionalFacade(method.getReturnType());
   
                           if (isFacadeRetVal) {
                               mClassSource.println(
  -                                "      Object retVal = mBaseServedObject.altrmiProcessObjectRequestGettingFacade(\""
  +                                "      Object retVal = mBaseServedObject.processObjectRequestGettingFacade(\""
                                   + methodSignature.toString() + "\",args,\""
                                   + encodeClassName(getClassType(rClass)) + "\");");
                               mClassSource.println("      return (" + getClassType(rClass)
                                                    + ") retVal;");
                           } else {
                               mClassSource.println(
  -                                "      Object retVal = mBaseServedObject.altrmiProcessObjectRequest(\""
  +                                "      Object retVal = mBaseServedObject.processObjectRequest(\""
                                   + methodSignature.toString() + "\",args);");
                               generateReturnLine(rClass);
                           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message