remove managed=true need for ManagedOperation
This commit is contained in:
parent
11dbce81c8
commit
74f8822e64
|
@ -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();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue