public List < String > describeOperation ( String operationName ) { List < String > list = new ArrayList < String > ( ) ; try { MBeanOperationInfo [ ] operations = beanInfo . getOperations ( ) ; for ( MBeanOperationInfo operation : operations ) { if ( operation . getName ( ) . equals ( operationName ) ) { list . add ( describeOperation ( operation ) ) ; } } } catch ( Exception e ) { throwException ( "Could not describe operations matching name '" + operationName + "'. Reason: " , e ) ; } return list ; }
Get the description of the specified operation . This returns a Collection since operations can be overloaded and one operationName can have multiple forms .