org.jboss.mx.loading
Interface MBeanFileParser

All Known Implementing Classes:
MLetParser (src)

public interface MBeanFileParser

Interface that abstracts the access to different MBean loader parsers (MLet file parsers, XML based parsers, etc.).

See Also:
MLet (src) , MLetParser (src) , org.jboss.mx.loading.MBeanLoader, org.jboss.mx.loading.XMLMBeanParser

Method Summary
 java.util.Set parseMBeanFile(java.lang.String url)
          Parses a file that describes the configuration of MBean to load and instantiate in the MBean server (for example, MLet text file).
 java.util.Set parseMBeanFile(java.net.URL url)
          Parses a file that describes the configuration of MBeans to load and instantiate in the MBean server (for example, MLet text file).
 

Method Detail

parseMBeanFile

public java.util.Set parseMBeanFile(java.net.URL url)
                             throws java.text.ParseException
Parses a file that describes the configuration of MBeans to load and instantiate in the MBean server (for example, MLet text file).

Parameters:
url - URL of the file
Returns:
a set of MBeanElement objects that contain the required information to load and register the MBean
Throws:
java.text.ParseException - if there was an error parsing the file
See Also:
MBeanElement (src)

parseMBeanFile

public java.util.Set parseMBeanFile(java.lang.String url)
                             throws java.text.ParseException,
                                    java.net.MalformedURLException
Parses a file that describes the configuration of MBean to load and instantiate in the MBean server (for example, MLet text file).

Parameters:
url - URL of the file
Returns:
a set of MBeanElement objects that contain the required information to load and register the MBean
Throws:
java.text.ParseException - if there was an error parsing the file
java.net.MalformedURLException - if the URL string was not valid
See Also:
MBeanElement (src)