geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/jmx Relationship.java
Date Wed, 13 Aug 2003 21:17:28 GMT
dain        2003/08/13 14:17:28

  Modified:    modules/core/src/java/org/apache/geronimo/jmx
                        Relationship.java
  Log:
  Fixed MBean relationship creation.  I was assuming that a relationship could only have two
roles, but a relationship can have zero or more roles.
  
  Revision  Changes    Path
  1.3       +4 -3      incubator-geronimo/modules/core/src/java/org/apache/geronimo/jmx/Relationship.java
  
  Index: Relationship.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/jmx/Relationship.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Relationship.java	13 Aug 2003 04:13:58 -0000	1.2
  +++ Relationship.java	13 Aug 2003 21:17:28 -0000	1.3
  @@ -67,8 +67,8 @@
   import org.apache.commons.logging.LogFactory;
   
   /**
  - * 
  - * 
  + *
  + *
    * @version $Revision$ $Date$
    */
   public class Relationship implements MBeanRegistration, RelationshipMBean{
  @@ -118,6 +118,7 @@
           RoleInfo[] roleInfo = {
               new RoleInfo(leftRoleName, leftRoleClass, leftRoleReadable, leftRoleWritable,
leftRoleMinimum, leftRoleMaximum, leftRoleDescription),
               new RoleInfo(rightRoleName, rightRoleClass, rightRoleReadable, rightRoleWritable,
rightRoleMinimum, rightRoleMaximum, rightRoleDescription),
  +            new RoleInfo("dummy", "java.lang.Object", true, true, 0, 0, "dummy role to
test three way relationship code"),
           };
           relationService.createRelationType(name, roleInfo);
       }
  
  
  

Mime
View raw message