remove managed=true need for ManagedOperation

This commit is contained in:
Jesse McConnell 2012-08-13 16:50:15 -05:00
parent 11dbce81c8
commit 74f8822e64
1 changed files with 16 additions and 1 deletions

View File

@ -726,7 +726,22 @@ public class ObjectMBean implements DynamicMBean
{
String description = methodAnnotation.value();
boolean onMBean = methodAnnotation.proxied();
boolean convert = methodAnnotation.managed();
boolean convert = false;
// determine if we should convert
Class<?> returnType = method.getReturnType();
if ( returnType.isArray() )
{
returnType = returnType.getComponentType();
}
if ( returnType.isAnnotationPresent(ManagedObject.class))
{
convert = true;
}
String impactName = methodAnnotation.impact();