javax.management.loading
Interface MLetMBean

All Known Implementing Classes:
MLet

public interface MLetMBean

Version:
$Revision: 1.3 $
Author:
Simone Bordet

Method Summary
 void addURL(java.lang.String url)
           
 void addURL(java.net.URL url)
           
 java.lang.String getLibraryDirectory()
           
 java.util.Set getMBeansFromURL(java.lang.String url)
           
 java.util.Set getMBeansFromURL(java.net.URL url)
           
 java.net.URL getResource(java.lang.String name)
          Finds the resource with the given name.
 java.io.InputStream getResourceAsStream(java.lang.String name)
          Returns an input stream for reading the specified resource.
 java.util.Enumeration getResources(java.lang.String name)
          Finds all the resources with the given name.
 java.net.URL[] getURLs()
           
 void setLibraryDirectory(java.lang.String libdir)
           
 

Method Detail

addURL

public void addURL(java.lang.String url)
            throws ServiceNotFoundException

addURL

public void addURL(java.net.URL url)

getURLs

public java.net.URL[] getURLs()

getLibraryDirectory

public java.lang.String getLibraryDirectory()

setLibraryDirectory

public void setLibraryDirectory(java.lang.String libdir)

getResource

public java.net.URL getResource(java.lang.String name)

Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a "/"-separated path name that identifies the resource

Parameters:
name - - The resource name
Returns:
An URL for reading the resource, or null if the resource could not be found or the caller doesn't have adequate privileges to get the resource

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)

Returns an input stream for reading the specified resource. The search order is described in the documentation for getResource(String).

Parameters:
name - - The resource name
Returns:
An input stream for reading the resource, or null if the resource could not be found.

getResources

public java.util.Enumeration getResources(java.lang.String name)
                                   throws java.io.IOException

Finds all the resources with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a "/"-separated path name that identifies the resource

Parameters:
name - - The resource name
Returns:
An enumeration of URL to the resource. If no resources could be found, the enumeration will be empty. Resources that the doesn't have access to will not be in the enumeration.
Throws:
java.io.IOException -  

getMBeansFromURL

public java.util.Set getMBeansFromURL(java.lang.String url)
                               throws ServiceNotFoundException

getMBeansFromURL

public java.util.Set getMBeansFromURL(java.net.URL url)
                               throws ServiceNotFoundException


Copyright © 2001-2002 MX4J Team. All Rights Reserved.