public AttributeList getAttributes(String[] attributes) { if (attributes == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attributes")); return super.getAttributes(attributes); }
public AttributeList setAttributes(AttributeList attributes) { if (attributes == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attributes")); return super.setAttributes(attributes); }
this.info = getMBeanInfo(); if (getResource() instanceof MBeanRegistration) return ((MBeanRegistration)getResource()).preRegister(server, oname); else return oname;
public void postRegister(Boolean b) { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postRegister(b); } finally { TCLAction.UTIL.setContextClassLoader(ccl); } }
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException { try { return super.getAttribute(name); } catch (ReflectionException e) { // Another inconsistency Exception ex = e.getTargetException(); if ((ex instanceof ClassNotFoundException) == false && (ex instanceof NoSuchMethodException) == false) { log.debug("Rewrapping reflection exception: ", e); throw new MBeanException(new ServiceNotFoundException(ex.getMessage()), e.getMessage()); } else throw e; } }
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Another inconsistency if (attribute == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attribute")); try { super.setAttribute(attribute); } catch (ReflectionException e) { // Another inconsistency Exception ex = e.getTargetException(); if ((ex instanceof ClassNotFoundException) == false && (ex instanceof NoSuchMethodException) == false) { log.debug("Rewrapping reflection exception: ", e); throw new MBeanException(new ServiceNotFoundException(ex.getMessage()), e.getMessage()); } else throw e; } }
value = super.invoke(name, args, signature);
invoker = new RequiredModelMBeanInvoker((DynamicMBean)object); else invoker = new RawDynamicInvoker((DynamicMBean)object);
this.info = getMBeanInfo(); if (getResource() instanceof MBeanRegistration) return ((MBeanRegistration)getResource()).preRegister(server, oname); else return oname;
public void postRegister(Boolean b) { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postRegister(b); } finally { TCLAction.UTIL.setContextClassLoader(ccl); } }
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException { try { return super.getAttribute(name); } catch (ReflectionException e) { // Another inconsistency Exception ex = e.getTargetException(); if ((ex instanceof ClassNotFoundException) == false && (ex instanceof NoSuchMethodException) == false) { log.debug("Rewrapping reflection exception: ", e); throw new MBeanException(new ServiceNotFoundException(ex.getMessage()), e.getMessage()); } else throw e; } }
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // Another inconsistency if (attribute == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attribute")); try { super.setAttribute(attribute); } catch (ReflectionException e) { // Another inconsistency Exception ex = e.getTargetException(); if ((ex instanceof ClassNotFoundException) == false && (ex instanceof NoSuchMethodException) == false) { log.debug("Rewrapping reflection exception: ", e); throw new MBeanException(new ServiceNotFoundException(ex.getMessage()), e.getMessage()); } else throw e; } }
value = super.invoke(name, args, signature);
invoker = new RequiredModelMBeanInvoker((DynamicMBean)object); else invoker = new RawDynamicInvoker((DynamicMBean)object);
public void preDeregister() throws Exception { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).preDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } }
public AttributeList getAttributes(String[] attributes) { if (attributes == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attributes")); return super.getAttributes(attributes); }
public AttributeList setAttributes(AttributeList attributes) { if (attributes == null) throw new RuntimeOperationsException(new IllegalArgumentException("Null attributes")); return super.setAttributes(attributes); }
public void postDeregister() { ClassLoader mbeanTCL = resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } } }
public void preDeregister() throws Exception { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).preDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } }
public void postDeregister() { ClassLoader mbeanTCL = resourceEntry == null ? null : resourceEntry.getClassLoader(); final ClassLoader ccl = TCLAction.UTIL.getContextClassLoader(); boolean setCl = ccl != mbeanTCL && mbeanTCL != null; if(setCl) { TCLAction.UTIL.setContextClassLoader(mbeanTCL); } try { if (getResource() instanceof MBeanRegistration) ((MBeanRegistration)getResource()).postDeregister(); } finally { if(setCl) { TCLAction.UTIL.setContextClassLoader(ccl); } } } }