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