public interface MLetMBean
Modifier and Type | Method and Description |
---|---|
void |
addURL(String url)
将指定的URL的URL列表搜索类和资源。
|
void |
addURL(URL url)
将指定的URL的URL列表搜索类和资源。
|
String |
getLibraryDirectory()
获取库装载机在将它们加载到内存之前存储的当前目录。
|
Set<Object> |
getMBeansFromURL(String url)
加载一个包含熔体标签定义要添加到MBean服务器的MBean的文本文件。
|
Set<Object> |
getMBeansFromURL(URL url)
加载一个包含熔体标签定义要添加到MBean服务器的MBean的文本文件。
|
URL |
getResource(String name)
查找给定名称的资源。
|
InputStream |
getResourceAsStream(String name)
返回用于读取指定资源的输入流。
|
Enumeration<URL> |
getResources(String name)
查找给定名称的所有资源。
|
URL[] |
getURLs()
返回加载类和资源的网址的搜索路径。
|
void |
setLibraryDirectory(String libdir)
设置库装载程序用于在它们被加载到内存之前存储本地库的目录。
|
Set<Object> getMBeansFromURL(String url) throws ServiceNotFoundException
url
-文本文件被加载的URL字符串对象。
ServiceNotFoundException
-下列错误发生的m-let:文本文件不包含的m-let熔体标签,文本文件没有找到,没有指定标签强制熔体属性,URL的值是错误的。
Set<Object> getMBeansFromURL(URL url) throws ServiceNotFoundException
url
-文本文件被加载的URL的URL对象。
ServiceNotFoundException
-下列错误发生的m-let:文本文件不包含的m-let熔体标签,文本文件没有找到,没有指定标签强制熔体属性,URL的值为空。
void addURL(URL url)
url
- URL添加。
void addURL(String url) throws ServiceNotFoundException
url
- URL添加。
ServiceNotFoundException
-指定的URL格式不正确。
URL[] getURLs()
URL getResource(String name)
name
-资源名称
InputStream getResourceAsStream(String name)
name
-资源名称
Enumeration<URL> getResources(String name) throws IOException
name
-资源名称。
IOException
-如果一个I / O发生异常时,寻找资源。
String getLibraryDirectory()
UnsupportedOperationException
如果实现不支持存储本Map书馆这样。
setLibraryDirectory(java.lang.String)
void setLibraryDirectory(String libdir)
libdir
由库加载器使用的目录。
UnsupportedOperationException
如果实现不支持存储本Map书馆这样。
getLibraryDirectory()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.