| javax.management.loading.MLetMBean
All known Subclasses: javax.management.loading.MLet,
addURL | public void addURL(URL url)(Code) | | Adds the given URL to the MLet's classpath.
Parameters: url - url |
getLibraryDirectory | public String getLibraryDirectory()(Code) | | |
getMBeansFromURL | public Set getMBeansFromURL(String url) throws ServiceNotFoundException(Code) | | Loads an MLET text file from a given url. The MLET text file is parsed
and the declared MBeans will be registered to the MBean server.
Parameters: url - url to load the MLET text file from A set of ObjectInstance instances for each registeredMBean. If there was an error registering the MBean, aThrowable instance is added to the returned collection. exception: ServiceNotFoundException - if the given URL is malformed, or thegiven MLET text file cannot be found, or the given text filedoes not contain an <MLET> tag or one of the specifiedmandatory attributes (see the JMX specification for a list ofmandatory attributes in an MLET text file). |
getMBeansFromURL | public Set getMBeansFromURL(URL url) throws ServiceNotFoundException(Code) | | Loads an MLET text file from a given url. The MLET text file is parsed
and the declared MBeans will be registered to the MBean server.
Parameters: url - url to load the MLET text file from A set of ObjectInstance instances for each registeredMBean. If there was an error registering the MBean, aThrowable instance is added to the returned collection. exception: ServiceNotFoundException - if thegiven MLET text file cannot be found, or the given text filedoes not contain an <MLET> tag or one of the specifiedmandatory attributes (see the JMX specification for a list ofmandatory attributes in an MLET text file). |
getResource | public URL getResource(String name)(Code) | | Returns a resource with a given name from this MLet's classpath.
Parameters: name - the resource name with a '/' separated path URL to the requested resource, or a null if it couldnot be found |
getResourceAsStream | public InputStream getResourceAsStream(String name)(Code) | | Returns a resource with a given name from this MLet's classpath.
Parameters: name - the resource name with a '/' separated path An InputStream to the requested resource, or a null ifit could not be found |
getResources | public Enumeration getResources(String name) throws IOException(Code) | | Returns all resources with a given name.
Parameters: name - the resource name with a '/' separated path an enumeration of URLs to the resource, or an empty Enumeration instance if no resources were found throws: IOException - |
getURLs | public URL[] getURLs()(Code) | | Returns the list of URLs associated with this MLet.
array of URLs |
setLibraryDirectory | public void setLibraryDirectory(String libdir)(Code) | | |
|
|