MBeanException,
ReflectionException {
// Check attribute is not null to avoid NullPointerException later on
if (attribute == null) {
throw new RuntimeOperationsException(
new IllegalArgumentException("Attribute cannot be null"),
"Cannot invoke a setter of "
+ dClassName
+ " with null attribute");
}
String name = attribute.getName();
Object value = attribute.getValue();
System.out.println("-------------------------------------------set:"+name+" value:"+value);
if (name == null) {
throw new RuntimeOperationsException(
new IllegalArgumentException("Attribute name cannot be null"),
"Cannot invoke the setter of "
+ dClassName
+ " with null attribute name");
}