|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Management interface of an MLet.
MLet
(src) Method Summary | |
void |
addURL(java.lang.String url)
Adds the given URL to the MLet's classpath. |
void |
addURL(java.net.URL url)
Adds the given URL to the MLet's classpath. |
java.lang.String |
getLibraryDirectory()
|
java.util.Set |
getMBeansFromURL(java.lang.String url)
Loads an MLET text file from a given url. |
java.util.Set |
getMBeansFromURL(java.net.URL url)
Loads an MLET text file from a given url. |
java.net.URL |
getResource(java.lang.String name)
Returns a resource with a given name from this MLet's classpath. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Returns a resource with a given name from this MLet's classpath. |
java.util.Enumeration |
getResources(java.lang.String name)
Returns all resources with a given name. |
java.net.URL[] |
getURLs()
Returns the list of URLs associated with this MLet. |
void |
setLibraryDirectory(java.lang.String libdir)
|
Method Detail |
public java.util.Set getMBeansFromURL(java.lang.String url) throws ServiceNotFoundException (src)
url
- url to load the MLET text file from
ServiceNotFoundException (src)
- 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 java.util.Set getMBeansFromURL(java.net.URL url) throws ServiceNotFoundException (src)
url
- url to load the MLET text file from
ServiceNotFoundException (src)
- 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(java.net.URL url)
url
- urlpublic void addURL(java.lang.String url) throws ServiceNotFoundException (src)
url
- url
ServiceNotFoundException (src)
- if the given URL is malformedpublic java.net.URL[] getURLs()
public java.net.URL getResource(java.lang.String name)
name
- the resource name with a '/' separated path
public java.io.InputStream getResourceAsStream(java.lang.String name)
name
- the resource name with a '/' separated path
public java.util.Enumeration getResources(java.lang.String name) throws java.io.IOException
name
- the resource name with a '/' separated path
java.io.IOException
public java.lang.String getLibraryDirectory()
public void setLibraryDirectory(java.lang.String libdir)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |