예제 #1
0
 @Override
 protected Object invoke(Object object, Object value, String operationName)
     throws MBeanException, ReflectionException {
   return MBeanBuilder.from(object)
       .build()
       .invoke(operationName, new Object[] {value}, new String[] {Object.class.getName()});
 }
예제 #2
0
 @Override
 protected void setAttribute(Object object, String attributeName, Object value)
     throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException,
         ReflectionException {
   MBeanBuilder.from(object)
       .build()
       .setAttribute(new javax.management.Attribute(attributeName, value));
 }
예제 #3
0
 @Override
 protected Object getAttribute(Object object, String attributeName)
     throws AttributeNotFoundException, MBeanException, ReflectionException {
   return MBeanBuilder.from(object).build().getAttribute(attributeName);
 }
예제 #4
0
 @Override
 protected MBeanInfo getMBeanInfo(Object object) {
   return MBeanBuilder.from(object).build().getMBeanInfo();
 }