org.apache.felix.ipojo.handlers.jmx
Class JmxConfigFieldMap

java.lang.Object
  extended by org.apache.felix.ipojo.handlers.jmx.JmxConfigFieldMap

public class JmxConfigFieldMap
extends java.lang.Object

JmxConfigFieldMap : use to store the informations needed to build the Dynamic MBean.

Author:
Felix Project Team

Constructor Summary
JmxConfigFieldMap()
          JmxConfigFieldMap : constructor.
 
Method Summary
 void addMethodFromName(java.lang.String name, MethodField methodField)
          addMethodFromName : add a new method descriptor from its name.
 void addMethodFromName(java.lang.String name, MethodField[] methodsField)
          addMethodFromName : add new methods descriptors from one name.
 void addNotificationFromName(java.lang.String name, NotificationField notificationField)
          addNotificationFromName : add a notification .
 void addPropertyFromName(java.lang.String name, PropertyField propertyField)
          addPropertyFromName : add a new attribute exposed in the Mbean.
 java.lang.String getDecription()
          getDescription : get the descritpion of the MBean.
 MethodField[] getMethodFromName(java.lang.String name)
          getMethodFromName : return the metod(s) which are similar.
 MethodField getMethodFromName(java.lang.String operationName, java.lang.String[] signature)
          getMethodFromName : get the method which the good signature.
 java.util.Collection<MethodField[]> getMethods()
          getMethods : return all methods store.
 NotificationField getNotificationFromName(java.lang.String name)
          getNotificationFromName : return the notification with requiered name.
 java.util.Collection<NotificationField> getNotifications()
          getNotification : get all notifications define.
 java.util.Collection<PropertyField> getProperties()
          getProperties : get all of the properties exposed.
 PropertyField getPropertyFromField(java.lang.String field)
          getPropertyFromField : get the property by the field.
 PropertyField getPropertyFromName(java.lang.String name)
          getPropertyFromName : get the property by the name.
 void overrideMethodFromName(java.lang.String name, MethodField methodField)
          DynamicMBeanImpl : add methods from name and erase the older if exist.
 void overrideMethodFromName(java.lang.String name, MethodField[] methodsField)
          DynamicMBeanImpl : add methods from name and erase the older if exist.
 void setDescription(java.lang.String description)
          setDescription : set the descritpion of the MBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxConfigFieldMap

public JmxConfigFieldMap()
JmxConfigFieldMap : constructor.

Method Detail

getDecription

public java.lang.String getDecription()
getDescription : get the descritpion of the MBean.

Returns:
String : Decription of the MBean

setDescription

public void setDescription(java.lang.String description)
setDescription : set the descritpion of the MBean.

Parameters:
description - : String which describe the Mbean

addPropertyFromName

public void addPropertyFromName(java.lang.String name,
                                PropertyField propertyField)
addPropertyFromName : add a new attribute exposed in the Mbean.

Parameters:
name - : name of the new property
propertyField - : Field which describe the property

getProperties

public java.util.Collection<PropertyField> getProperties()
getProperties : get all of the properties exposed.

Returns:
: collection of all properties

getPropertyFromName

public PropertyField getPropertyFromName(java.lang.String name)
getPropertyFromName : get the property by the name.

Parameters:
name - : name of the requiered property
Returns:
PropertyField : the field requiered or null if is not found

getPropertyFromField

public PropertyField getPropertyFromField(java.lang.String field)
getPropertyFromField : get the property by the field.

Parameters:
field - : the requiered field
Returns:
PropertyField :

addMethodFromName

public void addMethodFromName(java.lang.String name,
                              MethodField methodField)
addMethodFromName : add a new method descriptor from its name.

Parameters:
name - : name of the method
methodField - : descritpion of the method

addMethodFromName

public void addMethodFromName(java.lang.String name,
                              MethodField[] methodsField)
addMethodFromName : add new methods descriptors from one name. (the method muste have the same name but different signature).

Parameters:
name - : name of the method
methodsField - : descritpion of the methods

overrideMethodFromName

public void overrideMethodFromName(java.lang.String name,
                                   MethodField methodField)
DynamicMBeanImpl : add methods from name and erase the older if exist.

Parameters:
name - : name of the method
methodField - : method to be added

overrideMethodFromName

public void overrideMethodFromName(java.lang.String name,
                                   MethodField[] methodsField)
DynamicMBeanImpl : add methods from name and erase the older if exist.

Parameters:
name - : name of the method
methodsField - : array of methods to be added

getMethodFromName

public MethodField[] getMethodFromName(java.lang.String name)
getMethodFromName : return the metod(s) which are similar.

Parameters:
name - : name of requiered method
Returns:
MethodField[] : list of returned methods

getMethodFromName

public MethodField getMethodFromName(java.lang.String operationName,
                                     java.lang.String[] signature)
getMethodFromName : get the method which the good signature.

Parameters:
operationName - : name of the method requiered
signature - : signature requiered
Returns:
MethodField : the method which the same signature or null if not found

getMethods

public java.util.Collection<MethodField[]> getMethods()
getMethods : return all methods store.

Returns:
Collection : collection of methodField[]

addNotificationFromName

public void addNotificationFromName(java.lang.String name,
                                    NotificationField notificationField)
addNotificationFromName : add a notification .

Parameters:
name - :
notificationField - :

getNotificationFromName

public NotificationField getNotificationFromName(java.lang.String name)
getNotificationFromName : return the notification with requiered name.

Parameters:
name - : name requiered
Returns:
NotificationField : return the notification if exist, null else

getNotifications

public java.util.Collection<NotificationField> getNotifications()
getNotification : get all notifications define.

Returns:
Collection : return collection of NotificationField