|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.metadata.AbstractBuilder org.jboss.mx.metadata.XMLMetaData
Aggregate builder for XML schemas. This builder implementation is used as an aggregate for all XML based builder implementations. The correct XML parser is picked based on the schema declaration of the XML file.
Field Summary |
Fields inherited from class org.jboss.mx.metadata.AbstractBuilder |
properties |
Fields inherited from interface org.jboss.mx.service.ServiceConstants |
JBOSSMX_DOMAIN, JBOSSMX_XMBEAN_DTD_1_0, JBOSSMX_XMBEAN_DTD_1_1, JBOSSMX_XMBEAN_DTD_1_2, MBEAN_LOADER_DTD_1_0, PERSISTENCE_TIMER, PUBLIC_JBOSSMX_XMBEAN_DTD_1_0, PUBLIC_JBOSSMX_XMBEAN_DTD_1_1, PUBLIC_JBOSSMX_XMBEAN_DTD_1_2 |
Fields inherited from interface org.jboss.mx.modelmbean.XMBeanConstants |
DESCRIPTOR, GET_METHOD_ATTRIBUTE, METADATA_DESCRIPTOR_PREFIX, RESOURCE_DESCRIPTOR_PREFIX, RESOURCE_REFERENCE, RESOURCE_TYPE, SAX_PARSER, SET_METHOD_ATTRIBUTE, STANDARD_INTERFACE, STANDARD_MBEAN, XMBEAN_DESCRIPTOR_PREFIX, XML_VALIDATION |
Constructor Summary | |
XMLMetaData(String mmbClassName,
String resourceClassName,
org.dom4j.Element element,
String version)
Creates a new XMLMetaData instance using an explicit DOM element
as the configuration source, and requiring an explicit version indicator. |
|
XMLMetaData(String mmbClassName,
String resourceClassName,
String url)
Constructs an aggregate XML builder implementation. |
|
XMLMetaData(String mmbClassName,
String resourceClassName,
String url,
Map properties)
Constructs an aggregate XML builder implementation. |
|
XMLMetaData(String mmbClassName,
String resourceClassName,
URL url)
Constructs an aggregate XML builder implementation. |
|
XMLMetaData(String mmbClassName,
String resourceClassName,
URL url,
Map properties)
Constructs an aggregate XML builder implementation. |
Method Summary | |
MBeanInfo |
build()
Constructs the Model MBean metadata. |
Methods inherited from class org.jboss.mx.metadata.AbstractBuilder |
getBooleanProperty, getProperties, getProperty, getStringProperty, setProperties, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLMetaData(String mmbClassName, String resourceClassName, URL url)
mmbClassName
- the class name of the Model MBean
implementationresourceClassName
- the class name of the resource object the
Model MBean representsurl
- the URL for the XML definition of the
management interfacepublic XMLMetaData(String mmbClassName, String resourceClassName, String url) throws MalformedURLException
mmbClassName
- the class name of the Model MBean
implementationresourceClassName
- the class name of the resource object the
Model MBean representsurl
- the URL for the XML definition of the
management interface
MalformedURLException
- if the URL string could not be resolvedpublic XMLMetaData(String mmbClassName, String resourceClassName, URL url, Map properties)
mmbClassName
- the class name of the Model MBean
implementationresourceClassName
- the class name of the resource object the
Model MBean representsurl
- the URL for the XML definition of the
management interfaceproperties
- Map of configuration properties for this
builder. These properties will be passed
to the appropriate XML schema specific builder
when it is created.public XMLMetaData(String mmbClassName, String resourceClassName, String url, Map properties) throws MalformedURLException
mmbClassName
- the class name of the Model MBean
implementationresourceClassName
- the class name of the resource object the
Model MBean representsurl
- the URL for the XML definition of the
management interfaceproperties
- Map of configuration properties for this
builder. These properties will be passed
to the appropriate XML schema specific builder
when it is created.
MalformedURLException
- if the URL string could not be resolvedpublic XMLMetaData(String mmbClassName, String resourceClassName, org.dom4j.Element element, String version)
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.
mmbClassName
- a String
valueresourceClassName
- a String
valueelement
- an org.w3c.dom.Element
valueversion
- a String
valueMethod Detail |
public MBeanInfo build() throws NotCompliantMBeanException
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.
build
in interface MetaDataBuilder
build
in class AbstractBuilder
NotCompliantMBeanException
- if there were errors building the
MBean info from the given XML file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |