org.jboss.test.jbossmx.implementation.server.support
Class ContextCL

java.lang.Object
  extended byorg.jboss.test.jbossmx.implementation.server.support.ContextCL
All Implemented Interfaces:
ContextCLMBean (src)

public class ContextCL
extends java.lang.Object
implements ContextCLMBean (src)

The ContextCL standard MBean implementation.


Constructor Summary
ContextCL()
          The TestData.class ClassLoader will be the ClassLoader of the ContextCL mbean because we have a static reference to the TestData class.
 
Method Summary
 void useTestData()
          An operation that load the TestData class using the current thread context class loader (TCL) and the Class.forName(String, boolean, ClassLoader) operation to validate that the class loader used to load TestData in the ctor is compatible with the operation TCL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextCL

public ContextCL()
          throws java.io.IOException
The TestData.class ClassLoader will be the ClassLoader of the ContextCL mbean because we have a static reference to the TestData class. This causes the VM to call the ClassLoader.loadClassInternal method.

Method Detail

useTestData

public void useTestData()
                 throws java.lang.Exception
An operation that load the TestData class using the current thread context class loader (TCL) and the Class.forName(String, boolean, ClassLoader) operation to validate that the class loader used to load TestData in the ctor is compatible with the operation TCL.

Specified by:
useTestData in interface ContextCLMBean (src)
Throws:
java.lang.Exception