| java.lang.Object org.jboss.mx.metadata.AbstractBuilder org.jboss.mx.metadata.XMLMetaData
Constructor Summary | |
public | XMLMetaData(String mmbClassName, String resourceClassName, URL url) Constructs an aggregate XML builder implementation. | public | XMLMetaData(String mmbClassName, String resourceClassName, String url) Constructs an aggregate XML builder implementation. | public | XMLMetaData(String mmbClassName, String resourceClassName, URL url, Map properties) Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface Parameters: properties - Map of configuration properties for thisbuilder. | public | XMLMetaData(String mmbClassName, String resourceClassName, String url, Map properties) Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface Parameters: properties - Map of configuration properties for thisbuilder. | public | XMLMetaData(String mmbClassName, String resourceClassName, Element element, String version) Creates a new XMLMetaData instance using an explicit DOM element
as the configuration source, and requiring an explicit version indicator. |
Method Summary | |
public MBeanInfo | build() Constructs the Model MBean metadata. |
XMLMetaData | public XMLMetaData(String mmbClassName, String resourceClassName, URL url)(Code) | | Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface |
XMLMetaData | public XMLMetaData(String mmbClassName, String resourceClassName, String url) throws MalformedURLException(Code) | | Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface throws: MalformedURLException - if the URL string could not be resolved |
XMLMetaData | public XMLMetaData(String mmbClassName, String resourceClassName, URL url, Map properties)(Code) | | Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface Parameters: properties - Map of configuration properties for thisbuilder. These properties will be passedto the appropriate XML schema specific builderwhen it is created. |
XMLMetaData | public XMLMetaData(String mmbClassName, String resourceClassName, String url, Map properties) throws MalformedURLException(Code) | | Constructs an aggregate XML builder implementation.
Parameters: mmbClassName - the class name of the Model MBeanimplementation Parameters: resourceClassName - the class name of the resource object theModel MBean represents Parameters: url - the URL for the XML definition of themanagement interface Parameters: properties - Map of configuration properties for thisbuilder. These properties will be passedto the appropriate XML schema specific builderwhen it is created. throws: MalformedURLException - if the URL string could not be resolved |
XMLMetaData | public XMLMetaData(String mmbClassName, String resourceClassName, Element element, String version)(Code) | | Creates a new XMLMetaData instance using an explicit DOM element
as the configuration source, and requiring an explicit version indicator.
The version should be the PublicID for the dtd or (worse) the dtd url.
Parameters: mmbClassName - a String value Parameters: resourceClassName - a String value Parameters: element - an org.w3c.dom.Element value Parameters: version - a String value |
build | public MBeanInfo build() throws NotCompliantMBeanException(Code) | | Constructs the Model MBean metadata. This implementation reads the
document type definition from the beginning of the XML file and picks
a corresponding XML builder based on the schema name. In case no
document type is defined the latest schema builder for this JBossMX
release is used.
The SAX parser implementation is selected by default based on JAXP
configuration. If you want to use JAXP to select the parser, you can
set the system property "javax.xml.parsers.SAXParserFactory".
For example, to use Xerces you might define:
java -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl ...
In case you can't or don't want to use JAXP to configure the SAX parser
implementation you can override the SAX parser implementation by setting
an MBean descriptor field
XMBeanConstants.SAX_PARSER to the
parser class string value.
initialized MBean info throws: NotCompliantMBeanException - if there were errors building theMBean info from the given XML file. |
Fields inherited from org.jboss.mx.metadata.AbstractBuilder | protected Map properties(Code)(Java Doc)
|
|
|