|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
javax.management.loading.MLet
URL classloader capable of parsing an MLet text file adhering to the file format defined in the JMX specification (v1.0).
MLetMBean,
Serialized Form| Constructor Summary | |
MLet()
|
|
MLet(URL[] urls)
|
|
MLet(URL[] urls,
boolean delegateToCLR)
|
|
MLet(URL[] urls,
ClassLoader parent)
|
|
MLet(URL[] urls,
ClassLoader parent,
boolean delegateToCLR)
|
|
MLet(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
|
|
MLet(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory,
boolean delegateToCLR)
|
|
| Method Summary | |
void |
addURL(String url)
Adds the given URL to the MLet's classpath. |
void |
addURL(URL url)
Adds the given URL to the MLet's classpath. |
String |
getLibraryDirectory()
|
Set |
getMBeansFromURL(String url)
Loads an MLET text file from a given url. |
Set |
getMBeansFromURL(URL url)
Loads an MLET text file from a given url. |
Class |
loadClass(String name,
boolean resolve)
|
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
This method is called by the MBeanServer before registration takes place. |
void |
readExternal(ObjectInput in)
This implementation does not support externalizing an MLet. |
void |
setLibraryDirectory(String libdir)
|
void |
writeExternal(ObjectOutput out)
This implementation does not support externalizing an MLet. |
| Methods inherited from class java.net.URLClassLoader |
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
defineClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.management.loading.MLetMBean |
getResource, getResourceAsStream, getResources, getURLs |
| Constructor Detail |
public MLet()
public MLet(URL[] urls)
public MLet(URL[] urls,
ClassLoader parent)
public MLet(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
public MLet(URL[] urls,
boolean delegateToCLR)
public MLet(URL[] urls,
ClassLoader parent,
boolean delegateToCLR)
public MLet(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory,
boolean delegateToCLR)
| Method Detail |
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
MBeanRegistrationThe MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister in interface MBeanRegistrationException - for any error, the MBean is not registered.public void postRegister(Boolean registrationDone)
MBeanRegistration
postRegister in interface MBeanRegistrationregistrationDone - the MBeanServer passes true when the
MBean was registered, false otherwise.
public void preDeregister()
throws Exception
MBeanRegistrationThe MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
MBeanRegistration
postDeregister in interface MBeanRegistration
public Set getMBeansFromURL(String url)
throws ServiceNotFoundException
MLetMBean
getMBeansFromURL in interface MLetMBeanurl - url to load the MLET text file from
ServiceNotFoundException - if the given URL is malformed, or the
given MLET text file cannot be found, or the given text file
does not contain an <MLET> tag or one of the specified
mandatory attributes (see the JMX specification for a list of
mandatory attributes in an MLET text file).
public Set getMBeansFromURL(URL url)
throws ServiceNotFoundException
MLetMBean
getMBeansFromURL in interface MLetMBeanurl - url to load the MLET text file from
ServiceNotFoundException - if the
given MLET text file cannot be found, or the given text file
does not contain an <MLET> tag or one of the specified
mandatory attributes (see the JMX specification for a list of
mandatory attributes in an MLET text file).public void addURL(URL url)
MLetMBean
addURL in interface MLetMBean
public void addURL(String url)
throws ServiceNotFoundException
MLetMBean
addURL in interface MLetMBeanurl - url
ServiceNotFoundException - if the given URL is malformedpublic String getLibraryDirectory()
getLibraryDirectory in interface MLetMBeanpublic void setLibraryDirectory(String libdir)
setLibraryDirectory in interface MLetMBean
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException,
UnsupportedOperationException
readExternal in interface ExternalizableUnsupportedOperationException
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException,
UnsupportedOperationException
writeExternal in interface ExternalizableUnsupportedOperationException
IOException
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||