Java Doc for XMBean.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » modelmbean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » jmx » org.jboss.mx.modelmbean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.mx.modelmbean.ModelMBeanInvoker
   org.jboss.mx.modelmbean.XMBean

XMBean
public class XMBean extends ModelMBeanInvoker implements XMBeanConstants,NotificationListener(Code)
XMBean implementation.
author:
   Juha Lindfors.
author:
   Matt Munz
author:
   Dimitris Andreadis
version:
   $Revision: 57200 $



Constructor Summary
public  XMBean()
     Default constructor for the XMBean Model MBean implementation.
public  XMBean(ModelMBeanInfo info)
     Creates an XMBean Model MBean implementation with a predefined JMX metadata.
public  XMBean(Object resource, String resourceType)
     Creates a XMBean instance with a given resource object and resource type.
public  XMBean(Object resource, URL interfaceURL)
    
public  XMBean(Descriptor descriptor)
    
public  XMBean(Object resource, org.w3c.dom.Element element, String version)
    
public  XMBean(Object resource, org.jboss.dom4j.Element element, String version)
    

Method Summary
public  voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    
protected  voidconfigureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name)
    
public  MBeanNotificationInfo[]getNotificationInfo()
    
public  voidhandleNotification(Notification notification, Object handback)
     Implements NotificationListener interface by simply forwarding any received Notification to the wrapped resource, if it implements the NotificationListener interface, too.
public  booleanisSupportedResourceType(Object resource, String resourceType)
    
public  voidremoveNotificationListener(NotificationListener listener)
    
public  voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
    


Constructor Detail
XMBean
public XMBean() throws MBeanException(Code)
Default constructor for the XMBean Model MBean implementation. This creates an uninitialized Model MBean template.



XMBean
public XMBean(ModelMBeanInfo info) throws MBeanException(Code)
Creates an XMBean Model MBean implementation with a predefined JMX metadata.
Parameters:
  info - Model MBean metadata describing this MBean template



XMBean
public XMBean(Object resource, String resourceType) throws MBeanException, NotCompliantMBeanException(Code)
Creates a XMBean instance with a given resource object and resource type.

This Model MBean implementation supports the following resource types:

 - 
ModelMBeanConstants.OBJECT_REF OBJECT_REF - 
XMBeanConstants.STANDARD_INTERFACE STANDARD_INTERFACE - 
XMBeanConstants.DESCRIPTOR DESCRIPTOR - Any valid URL string to a *.xml file.
 
OBJECT_REF: resource object can be any Java object. The management interface must be set separately via javax.management.modelmbean.ModelMBean.setModelMBeanInfo 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 javax.management.Descriptor Descriptor object passed to this Model MBean instance. The descriptor object must contain the mandatory fields XMBeanConstants.RESOURCE_REFERENCE RESOURCE_REFERENCE and XMBeanConstants.RESOURCE_TYPE 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 XMBeanConstants.SAX_PARSER SAX_PARSER and XMBeanConstants.XML_VALIDATION XML_VALIDATION that are passed as configuration properties for the metadata builder instances. Any additional descriptor fields that match the XMBeanConstants.METADATA_DESCRIPTOR_PREFIX METADATA_DESCRIPTOR_PREFIX naming pattern will be passed to the builder implementation via its org.jboss.mx.metadata.MetaDataBuilder.setProperty 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.
Parameters:
  resource - resource object or descriptor
Parameters:
  resourceType - resource type string or URL to *.xml file




XMBean
public XMBean(Object resource, URL interfaceURL) throws MBeanException, NotCompliantMBeanException(Code)



XMBean
public XMBean(Descriptor descriptor) throws MBeanException, NotCompliantMBeanException(Code)



XMBean
public XMBean(Object resource, org.w3c.dom.Element element, String version) throws MBeanException, NotCompliantMBeanException(Code)



XMBean
public XMBean(Object resource, org.jboss.dom4j.Element element, String version) throws MBeanException, NotCompliantMBeanException(Code)




Method Detail
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code)



configureInterceptorStack
protected void configureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name) throws Exception(Code)



getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()(Code)



handleNotification
public void handleNotification(Notification notification, Object handback)(Code)
Implements NotificationListener interface by simply forwarding any received Notification to the wrapped resource, if it implements the NotificationListener interface, too. This is needed to allow the wrapped resource to register for Notifications using the XMBean ObjectName, rather than its own "this" reference - dimitris



isSupportedResourceType
public boolean isSupportedResourceType(Object resource, String resourceType)(Code)



removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)



removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)



Fields inherited from org.jboss.mx.modelmbean.ModelMBeanInvoker
protected long attrNotifierSequence(Code)(Java Doc)
Logger log(Code)(Java Doc)
protected JBossNotificationBroadcasterSupport notifier(Code)(Java Doc)
protected long notifierSequence(Code)(Java Doc)
protected PersistenceManager persistence(Code)(Java Doc)
protected String resourceType(Code)(Java Doc)

Methods inherited from org.jboss.mx.modelmbean.ModelMBeanInvoker
public void addAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) throws MBeanException(Code)(Java Doc)
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)(Code)(Java Doc)
protected void configureInterceptorStack(ModelMBeanInfo info, MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
protected List getInterceptors(Descriptor d) throws Exception(Code)(Java Doc)
public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc)
protected void init(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
protected void initAttributeContexts(MBeanAttributeInfo[] attributes)(Code)(Java Doc)
protected void initOperationContexts(MBeanOperationInfo[] operations)(Code)(Java Doc)
protected void initPersistence(MBeanServer server, ObjectName name) throws MBeanException, InstanceNotFoundException(Code)(Java Doc)
public ObjectName invokePreRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
protected boolean isSupportedResourceType(Object resource, String resourceType)(Code)(Java Doc)
public void load() throws MBeanException, InstanceNotFoundException(Code)(Java Doc)
protected void override(Invocation invocation) throws MBeanException(Code)(Java Doc)
public void removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName) throws MBeanException, ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc)
public void sendAttributeChangeNotification(AttributeChangeNotification notification) throws MBeanException(Code)(Java Doc)
public void sendAttributeChangeNotification(Attribute oldValue, Attribute newValue) throws MBeanException, RuntimeOperationsException(Code)(Java Doc)
public void sendNotification(String ntfyText) throws MBeanException, RuntimeOperationsException(Code)(Java Doc)
public void sendNotification(Notification ntfyObj) throws MBeanException, RuntimeOperationsException(Code)(Java Doc)
public void setManagedResource(Object ref, String resourceType) throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException(Code)(Java Doc)
public void setModelMBeanInfo(ModelMBeanInfo info) throws MBeanException, RuntimeOperationsException(Code)(Java Doc)
protected void setValuesFromMBeanInfo() throws JMException(Code)(Java Doc)
public void store() throws MBeanException, InstanceNotFoundException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.