User: juhalindfors
  Date: 02/02/05 04:57:57

  Added:       src/main/test/implementation/loading/support AClass.java
                        Start.java StartMBean.java Target.java
                        TargetMBean.java
  Log:
  test for demonstrating class conflict between two mlets
  
  Revision  Changes    Path
  1.1                  jmx/src/main/test/implementation/loading/support/AClass.java
  
  Index: AClass.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package test.implementation.loading.support;
  
  
  public class AClass
  {
  
   
  }
  
  
  
  1.1                  jmx/src/main/test/implementation/loading/support/Start.java
  
  Index: Start.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package test.implementation.loading.support;
  
  import javax.management.ObjectName;
  import javax.management.MBeanServer;
  import javax.management.MBeanServerFactory;
  
  /**
   * Start MBean invokes Target MBean with an arg AClass that
   * both MBeans have loaded using different MLet loaders.
   *
   * @see <related>
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
   * @version $Revision: 1.1 $
   *   
   */
  public class Start
     implements StartMBean
  {
  
     public void startOp(String agentID) throws Exception
     {
        MBeanServer server = 
(MBeanServer)MBeanServerFactory.findMBeanServer(agentID).get(0);
        
        server.invoke(new ObjectName(":name=Target"), "executeTarget",
        new Object[] { new AClass() },
        new String[] { AClass.class.getName() }
        );
     }
     
  }
        
  
  
  
  
  
  
  1.1                  jmx/src/main/test/implementation/loading/support/StartMBean.java
  
  Index: StartMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package test.implementation.loading.support;
  
  /**
   * Start MBean invokes Target MBean with an arg AClass that
   * both MBeans have loaded using different MLet loaders.
   *
   * @see <related>
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
   * @version $Revision: 1.1 $
   *   
   */
  public interface StartMBean
  {
  
     public void startOp(String agentID) throws Exception;
     
  }
        
  
  
  
  
  
  
  1.1                  jmx/src/main/test/implementation/loading/support/Target.java
  
  Index: Target.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package test.implementation.loading.support;
  
  /**
   * Target attempts to place the arg to instance field.
   *
   * @see <related>
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
   * @version $Revision: 1.1 $
   *   
   */
  public class Target
     implements TargetMBean
  {
  
     AClass a;
     
     public void executeTarget(AClass a)
     {
        this.a = a;
     }
     
  }
        
  
  
  
  
  
  
  1.1                  
jmx/src/main/test/implementation/loading/support/TargetMBean.java
  
  Index: TargetMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package test.implementation.loading.support;
  
  /**
   * Target attempts to place the arg to instance field.
   *
   * @see <related>
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
   * @version $Revision: 1.1 $
   *   
   */
  public interface TargetMBean
  {
  
     public void executeTarget(AClass a);
     
  }
        
  
  
  
  
  
  

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

Reply via email to