org.realityforge.metaclass.jmx
Class ModelInfoCreationHelper

java.lang.Object
  |
  +--org.realityforge.metaclass.jmx.ModelInfoCreationHelper

public class ModelInfoCreationHelper
extends Object

This is a class that helps the developer to incrementally build a ModelMBean. The developer adds various info objects and then at completion calls toModelMBean.

Version:
$Revision: 1.2 $ $Date: 2003/10/14 00:25:15 $
Author:
Peter Donald

Constructor Summary
ModelInfoCreationHelper()
           
 
Method Summary
 void addAttribute(javax.management.modelmbean.ModelMBeanAttributeInfo info)
          Add an attribute info.
 void addConstructor(javax.management.modelmbean.ModelMBeanConstructorInfo info)
          Add a constructor info.
 void addNotification(javax.management.modelmbean.ModelMBeanNotificationInfo info)
          Add a notification info.
 void addOperation(javax.management.modelmbean.ModelMBeanOperationInfo info)
          Add an operation info.
 javax.management.modelmbean.ModelMBeanAttributeInfo[] getAttributes()
          Return the set of attribute infos.
 javax.management.modelmbean.ModelMBeanConstructorInfo[] getConstructors()
          Return the set of constructor infos.
 javax.management.modelmbean.ModelMBeanNotificationInfo[] getNotifications()
          Return the set of notification infos.
 javax.management.modelmbean.ModelMBeanOperationInfo[] getOperations()
          Return the set of operation infos.
 void setClassname(String classname)
          Set the classname for ModelMBeanInfo.
 void setDescription(String description)
          Set the description for ModelMBeanInfo.
 javax.management.modelmbean.ModelMBeanInfo toModelMBeanInfo()
          Create ModelMBeanInfo from values specified for class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelInfoCreationHelper

public ModelInfoCreationHelper()
Method Detail

setClassname

public void setClassname(String classname)
Set the classname for ModelMBeanInfo.

Parameters:
classname - the classname for ModelMBeanInfo

setDescription

public void setDescription(String description)
Set the description for ModelMBeanInfo.

Parameters:
description - the description for ModelMBeanInfo.

addAttribute

public void addAttribute(javax.management.modelmbean.ModelMBeanAttributeInfo info)
Add an attribute info.

Parameters:
info - the info

addConstructor

public void addConstructor(javax.management.modelmbean.ModelMBeanConstructorInfo info)
Add a constructor info.

Parameters:
info - the info

addOperation

public void addOperation(javax.management.modelmbean.ModelMBeanOperationInfo info)
Add an operation info.

Parameters:
info - the info

addNotification

public void addNotification(javax.management.modelmbean.ModelMBeanNotificationInfo info)
Add a notification info.

Parameters:
info - the info

toModelMBeanInfo

public javax.management.modelmbean.ModelMBeanInfo toModelMBeanInfo()
Create ModelMBeanInfo from values specified for class.

Returns:
the new ModelMBeanInfo object

getNotifications

public javax.management.modelmbean.ModelMBeanNotificationInfo[] getNotifications()
Return the set of notification infos.

Returns:
the infos

getOperations

public javax.management.modelmbean.ModelMBeanOperationInfo[] getOperations()
Return the set of operation infos.

Returns:
the infos

getConstructors

public javax.management.modelmbean.ModelMBeanConstructorInfo[] getConstructors()
Return the set of constructor infos.

Returns:
the infos

getAttributes

public javax.management.modelmbean.ModelMBeanAttributeInfo[] getAttributes()
Return the set of attribute infos.

Returns:
the infos


Copyright © 2003 The Spice Group. All Rights Reserved.