org.jboss.mx.metadata
Class JBossXMBean10

java.lang.Object
  extended byorg.jboss.mx.metadata.AbstractBuilder (src) 
      extended byorg.jboss.mx.metadata.JBossXMBean10
All Implemented Interfaces:
MetaDataBuilder (src) , ModelMBeanConstants (src) , XMBeanConstants (src)

public class JBossXMBean10
extends AbstractBuilder (src)
implements XMBeanConstants (src)

The JBoss 1.0 model mbean descriptor parser class.


Field Summary
 
Fields inherited from class org.jboss.mx.metadata.AbstractBuilder (src)
properties
 
Fields inherited from interface org.jboss.mx.modelmbean.XMBeanConstants (src)
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
 
Fields inherited from interface org.jboss.mx.modelmbean.ModelMBeanConstants (src)
ACTION, ACTION_INFO, ALL_DESCRIPTORS, ATTRIBUTE_DESCRIPTOR, ATTRIBUTE_VALUE, CACHE_ALWAYS, CACHE_ALWAYS_LIMIT, CACHE_NEVER, CACHE_NEVER_LIMIT, CACHED_VALUE, CLASS, CONSTRUCTOR_DESCRIPTOR, CURRENCY_TIME_LIMIT, 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, GET_METHOD, HIGH_VISIBILITY, INFO, INTERCEPTORS, IS_IS, IS_READABLE, IS_WRITABLE, LAST_RETURNED_TIME_STAMP, LAST_UPDATED_TIME_STAMP, LAST_UPDATED_TIME_STAMP2, LOG, LOG_FILE, LOW_VISIBILITY, MBEAN_DESCRIPTOR, MBEAN_INFO_INJECTION_TYPE, MBEAN_SERVER_INJECTION_TYPE, MESSAGE_ID, MINIMAL_VISIBILITY, NAME, NORMAL_VISIBILITY, NOTIFICATION_DESCRIPTOR, OBJECT_NAME, OBJECT_NAME_INJECTION_TYPE, OBJECT_REF, OPERATION_DESCRIPTOR, PERSIST_INFO, PERSIST_LOCATION, PERSIST_NAME, PERSIST_PERIOD, PERSIST_POLICIES, PERSIST_POLICY, PERSISTENCE_MANAGER, PP_ALWAYS, PP_NEVER, PP_NO_MORE_OFTEN_THAN, PP_ON_TIMER, PP_ON_UPDATE, PRESENTATION_STRING, PROTOCOL_MAP, RESOURCE_CLASS, ROLE, ROLE_CONSTRUCTOR, ROLE_GETTER, ROLE_OPERATION, ROLE_SETTER, SET_METHOD, SEVERITY, SEVERITY_CRITICAL, SEVERITY_MAJOR, SEVERITY_MINOR, SEVERITY_NON_RECOVERABLE, SEVERITY_NORMAL, SEVERITY_UNKNOWN, SEVERITY_WARNING, TARGET_OBJECT, TARGET_TYPE, VISIBILITY
 
Constructor Summary
JBossXMBean10(java.lang.String mmbClassName, java.lang.String resourceClassName, Element element, java.util.Map properties)
           
 
Method Summary
 MBeanInfo (src) build()
          Constructs the Model MBean metadata.
protected  ModelMBeanAttributeInfo (src) [] buildAttributeInfo(java.util.List attributes)
           
protected  ModelMBeanConstructorInfo (src) [] buildConstructorInfo(java.util.List constructors)
           
protected  Descriptor (src) [] buildInterceptors(Element descriptor)
           
protected  ModelMBeanInfo (src) buildMBeanMetaData(java.lang.String description, java.util.List constructors, java.util.List operations, java.util.List attributes, java.util.List notifications, Descriptor (src)  descr)
           
protected  ModelMBeanNotificationInfo (src) [] buildNotificationInfo(java.util.List notifications)
           
protected  ModelMBeanOperationInfo (src) [] buildOperationInfo(java.util.List operations, java.util.List attributes)
           
protected  MBeanParameterInfo (src) [] buildParameterInfo(java.util.List parameters)
           
protected  java.lang.Object convertValue(java.lang.String unconverted, java.lang.String typeName)
          Describe convertType method here.
protected  java.lang.Object getAttributeValue(Element attribute, java.lang.String typeName, java.lang.String which)
          Get the value for the attribute descriptor "value" or "default" the same way we would do for mbean attribute overrides
protected  Descriptor (src) getDescriptor(Element parent, java.lang.String infoName, java.lang.String type)
           
 
Methods inherited from class org.jboss.mx.metadata.AbstractBuilder (src)
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

JBossXMBean10

public JBossXMBean10(java.lang.String mmbClassName,
                     java.lang.String resourceClassName,
                     Element element,
                     java.util.Map properties)
Method Detail

build

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

Specified by:
build in interface MetaDataBuilder (src)
Specified by:
build in class AbstractBuilder (src)
Throws:
NotCompliantMBeanException (src)

getDescriptor

protected Descriptor (src)  getDescriptor(Element parent,
                                   java.lang.String infoName,
                                   java.lang.String type)
                            throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

buildMBeanMetaData

protected ModelMBeanInfo (src)  buildMBeanMetaData(java.lang.String description,
                                            java.util.List constructors,
                                            java.util.List operations,
                                            java.util.List attributes,
                                            java.util.List notifications,
                                            Descriptor (src)  descr)
                                     throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

buildConstructorInfo

protected ModelMBeanConstructorInfo (src) [] buildConstructorInfo(java.util.List constructors)
                                                    throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

buildOperationInfo

protected ModelMBeanOperationInfo (src) [] buildOperationInfo(java.util.List operations,
                                                       java.util.List attributes)
                                                throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

buildNotificationInfo

protected ModelMBeanNotificationInfo (src) [] buildNotificationInfo(java.util.List notifications)
                                                      throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

buildAttributeInfo

protected ModelMBeanAttributeInfo (src) [] buildAttributeInfo(java.util.List attributes)
                                                throws NotCompliantMBeanException (src) 
Throws:
NotCompliantMBeanException (src)

getAttributeValue

protected java.lang.Object getAttributeValue(Element attribute,
                                             java.lang.String typeName,
                                             java.lang.String which)
                                      throws NotCompliantMBeanException (src) 
Get the value for the attribute descriptor "value" or "default" the same way we would do for mbean attribute overrides

Throws:
NotCompliantMBeanException (src)

convertValue

protected java.lang.Object convertValue(java.lang.String unconverted,
                                        java.lang.String typeName)
                                 throws NotCompliantMBeanException (src) 
Describe convertType method here. Copied from ServiceConfigurator, without Element support.

Parameters:
unconverted - a String value
typeName - a String value
Returns:
an Object value
Throws:
NotCompliantMBeanException (src) - if an error occurs

buildParameterInfo

protected MBeanParameterInfo (src) [] buildParameterInfo(java.util.List parameters)

buildInterceptors

protected Descriptor (src) [] buildInterceptors(Element descriptor)