public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { MBeanEntry entry = registry.get(name); String attributeName = null; if (attribute != null) attributeName = attribute.getName(); checkMBeanPermission(entry.getResourceClassName(), attributeName, name, "setAttribute"); MBeanInvoker mbean = entry.getInvoker(); mbean.setAttribute(attribute); }
public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { MBeanEntry entry = registry.get(name); String attributeName = null; if (attribute != null) attributeName = attribute.getName(); checkMBeanPermission(entry.getResourceClassName(), attributeName, name, "setAttribute"); MBeanInvoker mbean = entry.getInvoker(); mbean.setAttribute(attribute); }