站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jmx API Documentation 英文版文档

XMBeanMetaData (JBoss/JMX API) - JBoss 3.2.7 jmx API Documentation 英文版文档


org.jboss.mx.metadata
Class XMBeanMetaData

java.lang.Object
  extended byorg.jboss.mx.metadata.AbstractBuilder
      extended byorg.jboss.mx.metadata.XMBeanMetaData
All Implemented Interfaces:
MetaDataBuilder, ModelMBeanConstants, XMBeanConstants

public class XMBeanMetaData
extends AbstractBuilder
implements XMBeanConstants

Parser for the XMBean schema defined in the JMX: Managing J2EE with Java Management Extensions (xmbean.dtd)

Version:
$Revision: 1.3.4.5 $
Author:
Juha Lindfors.

Field Summary
 
Fields inherited from class org.jboss.mx.metadata.AbstractBuilder
properties
 
Fields inherited from interface org.jboss.mx.modelmbean.XMBeanConstants
DESCRIPTOR, GET_METHOD_ATTRIBUTE, METADATA_DESCRIPTOR_PREFIX, PERSIST_POLICY_LIST, RESOURCE_DESCRIPTOR_PREFIX, RESOURCE_REFERENCE, RESOURCE_TYPE, SAX_PARSER, SET_METHOD_ATTRIBUTE, STANDARD_INTERFACE, STANDARD_MBEAN, XMBEAN_DESCRIPTOR_PREFIX, XML_VALIDATION
 
Fields inherited from interface org.jboss.mx.modelmbean.ModelMBeanConstants
ACTION, ACTION_INFO, ALL_DESCRIPTORS, ATTRIBUTE_DESCRIPTOR, CACHE_ALWAYS, CACHE_NEVER, CONSTRUCTOR, CONSTRUCTOR_DESCRIPTOR, DEFAULT, DELEGATING_PM_OPERATION_DEFAULT_VALUE, DELEGATING_PM_OPERATION_DESCRIPTOR, DELEGATING_PM_SERVICE_DEFAULT_VALUE, DELEGATING_PM_SERVICE_DESCRIPTOR, DESCRIPTOR_TYPE, DISPLAY_NAME, EXPORT, GENERIC_MODELMBEAN_NOTIFICATION, GETTER, HIGH_VISIBILITY, INFO, INTERCEPTORS, IS_IS, IS_READABLE, IS_WRITABLE, LAST_RETURNED_TIME_STAMP, LAST_UPDATED_TIME_STAMP, LOG, LOW_VISIBILITY, MBEAN_DESCRIPTOR, MBEAN_INFO_INJECTION_TYPE, MBEAN_SERVER_INJECTION_TYPE, MINIMAL_VISIBILITY, NAME, NORMAL_VISIBILITY, NOTIFICATION_DESCRIPTOR, OBJECT_NAME, OBJECT_NAME_INJECTION_TYPE, OBJECT_REF, OPERATION_DESCRIPTOR, PERSIST_INFO, PERSISTENCE_MANAGER, PM_NEVER, PM_NO_MORE_OFTEN_THAN, PM_ON_TIMER, PM_ON_UPDATE, RESOURCE_CLASS, ROLE, SETTER, SEVERITY, VALUE, VISIBILITY
 
Constructor Summary
XMBeanMetaData(String mmbClassName, String resourceClassName, org.dom4j.Element element, Map properties)
           
 
Method Summary
 MBeanInfo build()
          Constructs the Model MBean metadata.
protected  ModelMBeanAttributeInfo[] buildAttributeInfo(List attributes)
          Parses the contents of an <attribute> element.
protected  ModelMBeanConstructorInfo[] buildConstructorInfo(List constructors)
          Parses the contents of an <constructor> element.
protected  ModelMBeanInfo buildMBeanMetaData(String description, List constructors, List operations, List attributes, List notifications, Descriptor descr)
          Parses the elements under the root and turns them into a Model MBean info instance.
protected  ModelMBeanNotificationInfo[] buildNotificationInfo(List notifications)
          Parses the contents of an <notification> element.
protected  ModelMBeanOperationInfo[] buildOperationInfo(List operations)
          Parses the contents of an <operation> element.
protected  MBeanParameterInfo[] buildParameterInfo(List parameters)
          Parses the contents of an <parameter> element.
 
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

XMBeanMetaData

public XMBeanMetaData(String mmbClassName,
                      String resourceClassName,
                      org.dom4j.Element element,
                      Map properties)
Method Detail

build

public MBeanInfo build()
                throws NotCompliantMBeanException
Description copied from interface: MetaDataBuilder
Constructs the Model MBean metadata.

Specified by:
build in interface MetaDataBuilder
Specified by:
build in class AbstractBuilder
Throws:
NotCompliantMBeanException

buildMBeanMetaData

protected ModelMBeanInfo buildMBeanMetaData(String description,
                                            List constructors,
                                            List operations,
                                            List attributes,
                                            List notifications,
                                            Descriptor descr)
Parses the elements under the root and turns them into a Model MBean info instance. Subclasses may override if they need to handle additional elements under the root <mbean>.

Parameters:
description - the MBean description extracted from the document instance.
constructors - list of <constructor> elements extracted from the document instance.
operations - list of <operation> elements extracted from the document instance.
attributes - list of <attributes> elements extracted from the document instance.
notifications - list of <notification> elements extracted from the document instance.
descr - MBean descriptor
Returns:
initialized Model MBean info

buildConstructorInfo

protected ModelMBeanConstructorInfo[] buildConstructorInfo(List constructors)
Parses the contents of an <constructor> element. Subclasses may override if they need to handle additional nested elements or arguments.

Parameters:
constructors - a list of <constructor> elements extracted from the document instance
Returns:
initialized constructor info

buildOperationInfo

protected ModelMBeanOperationInfo[] buildOperationInfo(List operations)
Parses the contents of an <operation> element. Subclasses may override if they need to handle additional nested elements or arguments.

Parameters:
operations - a list of <operation> elements extracted from the document instance
Returns:
initialized operation info

buildNotificationInfo

protected ModelMBeanNotificationInfo[] buildNotificationInfo(List notifications)
Parses the contents of an <notification> element. Subclasses may override if they need to handle additional nested elements or arguments.

Parameters:
notifications - a list of <notification> elements extraced from the document instance
Returns:
initialized notification info

buildAttributeInfo

protected ModelMBeanAttributeInfo[] buildAttributeInfo(List attributes)
Parses the contents of an <attribute> element. Subclasses may override if they need to handle additional nested elements or arguments.

Parameters:
attributes - a list of <attribute> elements extracted from the document instance
Returns:
initialized attribute info

buildParameterInfo

protected MBeanParameterInfo[] buildParameterInfo(List parameters)
Parses the contents of an <parameter> element. Subclasses may override if they need to handle additional nested elements or arguments.

Returns:
initialized parameter info


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.