private void validate(String value, String[] valid) throws NotCompliantMBeanException { for (int i = 0; i< valid.length; i++) { if (valid[i].equalsIgnoreCase(value)) { return; } // end of if () } // end of for () throw new JBossNotCompliantMBeanException("Unknown descriptor value: " + value); }
/** * Prints the composite message and the embedded stack trace to * <tt>System.err</tt>. */ public void printStackTrace() { printStackTrace(System.err); }
private void validate(String value, String[] valid) throws NotCompliantMBeanException { for (int i = 0; i< valid.length; i++) { if (valid[i].equalsIgnoreCase(value)) { return; } // end of if () } // end of for () throw new JBossNotCompliantMBeanException("Unknown descriptor value: " + value); }
/** * Prints the composite message and the embedded stack trace to * <tt>System.err</tt>. */ public void printStackTrace() { printStackTrace(System.err); }
public MBeanInfo build() throws NotCompliantMBeanException { try { if (element == null) { throw new JBossNotCompliantMBeanException("No xml configuration supplied!"); } String description = element.elementTextTrim("description"); if (resourceClassName == null) { resourceClassName = element.elementTextTrim("class"); } List constructors = element.elements("constructor"); List operations = element.elements("operation"); List attributes = element.elements("attribute"); List notifications = element.elements("notification"); Descriptor descr = getDescriptor(element, mmbClassName, MBEAN_DESCRIPTOR); ModelMBeanInfo info = buildMBeanMetaData( description, constructors, operations, attributes, notifications, descr ); return (MBeanInfo) info; } catch (Throwable t) { throw new JBossNotCompliantMBeanException("Error parsing the XML file: ", t); } }
public MBeanInfo build() throws NotCompliantMBeanException { try { if (element == null) { throw new JBossNotCompliantMBeanException("No xml configuration supplied!"); } String description = element.elementTextTrim("description"); if (resourceClassName == null) { resourceClassName = element.elementTextTrim("class"); } List constructors = element.elements("constructor"); List operations = element.elements("operation"); List attributes = element.elements("attribute"); List notifications = element.elements("notification"); Descriptor descr = getDescriptor(element, mmbClassName, MBEAN_DESCRIPTOR); ModelMBeanInfo info = buildMBeanMetaData( description, constructors, operations, attributes, notifications, descr ); return (MBeanInfo) info; } catch (Throwable t) { throw new JBossNotCompliantMBeanException("Error parsing the XML file: ", t); } }
throw new JBossNotCompliantMBeanException ("Class not found '" + typeName + "'", e); if (editor == null) throw new JBossNotCompliantMBeanException ("No property editor for type '" + typeName + "'"); throw new JBossNotCompliantMBeanException( "cannot convert '" + which + "' descriptor to org.w3c.dom.Element", e);
throw new JBossNotCompliantMBeanException ("Class not found '" + typeName + "'", e); if (editor == null) throw new JBossNotCompliantMBeanException ("No property editor for type '" + typeName + "'"); throw new JBossNotCompliantMBeanException( "cannot convert '" + which + "' descriptor to org.w3c.dom.Element", e);
throw new JBossNotCompliantMBeanException("Error parsing the XML file, from XMLMetaData: ", e);
throw new JBossNotCompliantMBeanException("Error parsing the XML file, from XMLMetaData: ", e);