org.apache.servicemix.jbi.management
Class OperationInfoHelper

java.lang.Object
  extended by org.apache.servicemix.jbi.management.OperationInfoHelper

public class OperationInfoHelper
extends Object

A Helper class to build an MBeanOperationInfo

Version:
$Revision: 564607 $

Constructor Summary
OperationInfoHelper()
           
 
Method Summary
 ParameterHelper addOperation(Object theObject, String name, int numberParams, String description)
          Add an operation
 ParameterHelper addOperation(Object theObject, String name, String description)
          Add an operation
 void clear()
          clear the internal list
 MBeanOperationInfo[] getOperationInfos()
          Get array of MBeanOperationInfos registered
static MBeanOperationInfo[] join(MBeanOperationInfo[] ops1, MBeanOperationInfo[] ops2)
          Join two MBeanOperationInfo[] arrays
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationInfoHelper

public OperationInfoHelper()
Method Detail

addOperation

public ParameterHelper addOperation(Object theObject,
                                    String name,
                                    String description)
Add an operation

Parameters:
theObject -
name -
description -
Returns:
array of MBeanParameterInfos

addOperation

public ParameterHelper addOperation(Object theObject,
                                    String name,
                                    int numberParams,
                                    String description)
Add an operation

Parameters:
theObject -
name -
numberParams -
description -
Returns:
array of MBeanParameterInfos

getOperationInfos

public MBeanOperationInfo[] getOperationInfos()
Get array of MBeanOperationInfos registered

Returns:
MBeanOperationInfos

clear

public void clear()
clear the internal list


join

public static MBeanOperationInfo[] join(MBeanOperationInfo[] ops1,
                                        MBeanOperationInfo[] ops2)
Join two MBeanOperationInfo[] arrays

Parameters:
ops1 -
ops2 -
Returns:
new MBeanOperationInfo array containing contents of ops1 and ops2


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.