User: mnf999  
  Date: 02/02/06 12:59:27

  Modified:    src/main/org/jboss/invocation Invocation.java
  Log:
  The invocation branching is now based on int and a case switch (SPEEEEEEEED)
  
  Revision  Changes    Path
  1.4       +13 -3     jboss/src/main/org/jboss/invocation/Invocation.java
  
  Index: Invocation.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/invocation/Invocation.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Invocation.java   2001/12/27 04:44:50     1.3
  +++ Invocation.java   2002/02/06 20:59:27     1.4
  @@ -26,7 +26,7 @@
   *
   *   @see <related>
   *   @author  <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -*   @version $Revision: 1.3 $
  +*   @version $Revision: 1.4 $
   *   Revisions:
   *
   *   <p><b>Revisions:</b>
  @@ -76,6 +76,16 @@
      ARGUMENTS = new Integer(new String("ARGUMENTS").hashCode()),
      // Enterprise context
      ENTERPRISE_CONTEXT = new Integer(new String("ENTERPRISE_CONTEXT").hashCode());
  +  
  +   public static final int
  +   REMOTE = 0,
  +   LOCAL = 1,
  +   HOME = 2, 
  +   LOCALHOME = 3,
  +   GETHOME = 4,
  +   GETREMOTE = 5,
  +   GETLOCALHOME = 6,
  +   GETLOCAL = 7;
      
      // Constructors --------------------------------------------------
      
  @@ -142,8 +152,8 @@
      public Object getContainer() { return getValue(CONTAINER);}
      
      // An arbitrary type
  -   public void setType(String type) {payload.put(TYPE, type);}
  -   public String getType() {return (String) getValue(TYPE);} 
  +   public void setType(int type) {payload.put(TYPE, new Integer(type));}
  +   public int getType() {return ((Integer) getValue(TYPE)).intValue();} 
      
      //Return the invocation target ID.  Can be used to identify a cached object
      public void setId(Object id) { payload.put(CACHE_ID, id);}
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to