| 
 | ||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.server.AbstractMBeanInvoker (src)
org.jboss.mx.modelmbean.ModelMBeanInvoker (src)
org.jboss.mx.modelmbean.XMBean
XMBean implementation.
| Nested Class Summary | 
| Nested classes inherited from class org.jboss.mx.server.AbstractMBeanInvoker (src) | 
| AbstractMBeanInvoker.OperationKey (src)  | 
| Field Summary | 
| Fields inherited from class org.jboss.mx.modelmbean.ModelMBeanInvoker (src) | 
| attrNotifierSequence, notifier, notifierSequence, persistence, resourceType | 
| Fields inherited from class org.jboss.mx.server.AbstractMBeanInvoker (src) | 
| attributeContextMap, constructorContextMap, dynamicResource, getMBeanInfoCtx, info, operationContextMap, postDeregisterCtx, postRegisterCtx, preDeregisterCtx, preRegisterCtx, resourceEntry | 
| 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 | 
| Constructor Summary | |
| XMBean()Default constructor for the XMBean Model MBean implementation. | |
| XMBean(Descriptor (src)  descriptor) | |
| XMBean(ModelMBeanInfo (src)  info)Creates an XMBean Model MBean implementation with a predefined JMX metadata. | |
| XMBean(java.lang.Object resource,
       org.w3c.dom.Element element,
       java.lang.String version) | |
| XMBean(java.lang.Object resource,
       java.lang.String resourceType)Creates a XMBean instance with a given resource object and resource type. | |
| XMBean(java.lang.Object resource,
       java.net.URL interfaceURL) | |
| Method Summary | |
|  void | addNotificationListener(NotificationListener (src)  listener,
                        NotificationFilter (src)  filter,
                        java.lang.Object handback)Add a listener to an MBean. | 
| protected  void | configureInterceptorStack(ModelMBeanInfo (src)  info,
                          MBeanServer (src)  server,
                          ObjectName (src)  name)Build the getMBeanInfo, operation, and attribute interceptor stacks and associated these with the corresponding InvocationContexts. | 
|  MBeanNotificationInfo (src) [] | getNotificationInfo()Returns the notification metadata associated with the MBean. | 
|  void | handleNotification(Notification (src)  notification,
                   java.lang.Object handback)Implements NotificationListener interface by simply forwarding any received Notification to the wrapped resource, if it implements the NotificationListener interface, too. | 
|  boolean | isSupportedResourceType(java.lang.Object resource,
                        java.lang.String resourceType) | 
|  void | removeNotificationListener(NotificationListener (src)  listener)Removes a listener from an MBean. | 
|  void | removeNotificationListener(NotificationListener (src)  listener,
                           NotificationFilter (src)  filter,
                           java.lang.Object handback)Removes a listener from the Emitter. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface javax.management.DynamicMBean (src) | 
| getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes | 
| Constructor Detail | 
public XMBean()
       throws MBeanException (src) 
public XMBean(ModelMBeanInfo (src)  info)
       throws MBeanException (src) 
info - Model MBean metadata describing this MBean template
public XMBean(java.lang.Object resource,
              java.lang.String resourceType)
       throws MBeanException (src) ,
              NotCompliantMBeanException (src) 
 This Model MBean implementation supports the following resource types:    
-OBJECT_REF: resource object can be any Java object. The management interface must be set separately viaOBJECT_REF-STANDARD_INTERFACE-DESCRIPTOR- Any valid URL string to a *.xml file.
setModelMBeanInfo
 method.  STANDARD_INTERFACE: the resource object is assumed to follow the Standard MBean naming conventions to expose its management interface, including implementing a xxxMBean interface. A corresponding Model MBean metadata is generated for the Model MBean representing this resource type.
 DESCRIPTOR: the resource object is wrapped as a part of
 the Descriptor (src)  object passed to this
 Model MBean instance. The descriptor object must contain the mandatory
 fields RESOURCE_REFERENCE and
 RESOURCE_TYPE that identify the
 correct resource reference and type used for this Model MBean instance.
 The descriptor object may also contain additional fields, such as
 SAX_PARSER and
 XML_VALIDATION that are passed as
 configuration properties for the metadata builder instances. Any
 additional descriptor fields that match the
 METADATA_DESCRIPTOR_PREFIX
 naming pattern will be passed to the builder implementation via its
 setProperty
 method.    
URL String: if a resource type string contains an URL that ends with a *.xml file name the resource object is exposed via the XML management interface definition read from this URL. The XML parser implementation is picked based on the schema definition in the XML document.
resource - resource object or descriptorresourceType - resource type string or URL to *.xml file
public XMBean(java.lang.Object resource,
              java.net.URL interfaceURL)
       throws MBeanException (src) ,
              NotCompliantMBeanException (src) 
public XMBean(Descriptor (src)  descriptor)
       throws MBeanException (src) ,
              NotCompliantMBeanException (src) 
public XMBean(java.lang.Object resource,
              org.w3c.dom.Element element,
              java.lang.String version)
       throws MBeanException (src) ,
              NotCompliantMBeanException (src) 
| Method Detail | 
public boolean isSupportedResourceType(java.lang.Object resource,
                                       java.lang.String resourceType)
isSupportedResourceType in class ModelMBeanInvoker (src) 
protected void configureInterceptorStack(ModelMBeanInfo (src)  info,
                                         MBeanServer (src)  server,
                                         ObjectName (src)  name)
                                  throws java.lang.Exception
ModelMBeanInvoker (src) 
configureInterceptorStack in class ModelMBeanInvoker (src) info - - the ModelMBean metadataserver - - the MBeanServer the ModelMBean is registering withname - - the ModelMBean name
java.lang.Exception
public void addNotificationListener(NotificationListener (src)  listener,
                                    NotificationFilter (src)  filter,
                                    java.lang.Object handback)
NotificationBroadcaster (src) 
addNotificationListener in interface NotificationBroadcaster (src) addNotificationListener in class ModelMBeanInvoker (src) 
public void removeNotificationListener(NotificationListener (src)  listener)
                                throws ListenerNotFoundException (src) 
NotificationBroadcaster (src) 
removeNotificationListener in interface NotificationBroadcaster (src) removeNotificationListener in class ModelMBeanInvoker (src) ListenerNotFoundException (src) 
public void removeNotificationListener(NotificationListener (src)  listener,
                                       NotificationFilter (src)  filter,
                                       java.lang.Object handback)
                                throws ListenerNotFoundException (src) 
NotificationEmitter (src) Only the listener, filter, handback triplet is removed
removeNotificationListener in interface NotificationEmitter (src) removeNotificationListener in class ModelMBeanInvoker (src) ListenerNotFoundException (src) public MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src) 
getNotificationInfo in interface NotificationBroadcaster (src) getNotificationInfo in class ModelMBeanInvoker (src) 
public void handleNotification(Notification (src)  notification,
                               java.lang.Object handback)
handleNotification in interface NotificationListener (src) notification - the notification objecthandback - the handback object given to the broadcaster
                         upon listener registration| 
 | ||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||