Methods Summary |
---|
public java.io.ObjectInputStream | deserialize(java.lang.ClassLoader loader, byte[] data)De-serializes a byte array in the context of a classloader.
|
public java.io.ObjectInputStream | deserialize(java.lang.String className, javax.management.ObjectName loaderName, byte[] data, java.lang.ClassLoader loader)De-serializes a byte array in the context of a given MBean class loader.
The class loader is the one that loaded the class with name
"className".
The name of the class loader to be used for loading the specified
class is specified. If null, a default one has to be provided (for a
MBean Server, its own class loader will be used).
|
public java.lang.Class | findClass(java.lang.String className, java.lang.ClassLoader loader)Gets the class for the specified class name using the MBean
Interceptor's classloader
|
public java.lang.Class | findClass(java.lang.String className, javax.management.ObjectName loaderName)Gets the class for the specified class name using the specified
class loader
|
public java.lang.Class | findClassWithDefaultLoaderRepository(java.lang.String className)Loads the class with the specified name using this object's
Default Loader Repository.
|
public java.lang.Class[] | findSignatureClasses(java.lang.String[] signature, java.lang.ClassLoader loader)Return an array of Class corresponding to the given signature, using
the specified class loader.
|
public com.sun.jmx.mbeanserver.ModifiableClassLoaderRepository | getClassLoaderRepository()Return the Default Loader Repository used by this instantiator object.
|
public java.lang.Object | instantiate(java.lang.String className, javax.management.ObjectName loaderName, java.lang.ClassLoader loader)Instantiates an object using the class Loader specified by its
ObjectName .
If the loader name is null, a default one has to be provided (for a
MBean Server, the ClassLoader that loaded it will be used).
The object's class should have a public constructor.
It returns a reference to the newly created object.
The newly created object is not registered in the MBean Interceptor.
|
public java.lang.Object | instantiate(java.lang.String className, java.lang.Object[] params, java.lang.String[] signature, java.lang.ClassLoader loader)Instantiates an object using the list of all class loaders registered
in the MBean server
(using its {@link javax.management.loading.ClassLoaderRepository}).
The object's class should have a public constructor.
The call returns a reference to the newly created object.
The newly created object is not registered in the MBean Interceptor.
|
public java.lang.Object | instantiate(java.lang.String className, javax.management.ObjectName loaderName, java.lang.Object[] params, java.lang.String[] signature, java.lang.ClassLoader loader)Instantiates an object. The class loader to be used is identified by its
object name.
If the object name of the loader is null, a default has to be
provided (for example, for a MBean Server, the ClassLoader that loaded
it will be used).
The object's class should have a public constructor.
The call returns a reference to the newly created object.
The newly created object is not registered in the MBean server.
|
public java.lang.Object | instantiate(java.lang.Class theClass)Instantiates an object given its class, using its empty constructor.
The call returns a reference to the newly created object.
|
public java.lang.Object | instantiate(java.lang.Class theClass, java.lang.Object[] params, java.lang.String[] signature, java.lang.ClassLoader loader)Instantiates an object given its class, the parameters and signature of its constructor
The call returns a reference to the newly created object.
|
public java.lang.Object | instantiate(java.lang.String className)Instantiates an object using the list of all class loaders registered
in the MBean Interceptor
(using its {@link javax.management.loading.ClassLoaderRepository}).
The object's class should have a public constructor.
It returns a reference to the newly created object.
The newly created object is not registered in the MBean Interceptor.
|
public void | testCreation(java.lang.Class c)This methods tests if the MBean class makes it possible to
instantiate an MBean of this class in the MBeanServer.
e.g. it must have a public constructor, be a concrete class...
|