public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException { if( name.equals("AuthConfig") ) return getAuthConfig(); throw new AttributeNotFoundException(name+": is not an attribute"); }
public Object invoke(String method, Object[] args, String[] signature) throws MBeanException, ReflectionException { Object value = null; if( method.equals("getConfiguration") ) { Configuration currentConfig = (Configuration) args[0]; value = this.getConfiguration(currentConfig); } return value; }
public AttributeList setAttributes(AttributeList attributeList) { AttributeList list = new AttributeList(); for(int n = 0; n < attributeList.size(); n ++) { Attribute attr = (Attribute) attributeList.get(n); try { setAttribute(attr); list.add(attr); } catch(Exception e) { } } return list; } // End DynamicMBean interfaces
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { String name = attribute.getName(); String value = (String) attribute.getValue(); if( name.equals("AuthConfig") ) { try { setAuthConfig(value); } catch(Exception e) { throw new MBeanException(e); } } else throw new AttributeNotFoundException(name+": is not an attribute"); }
public AttributeList getAttributes(String[] names) { AttributeList list = new AttributeList(); for(int n = 0; n < names.length; n ++) { String name = names[n]; try { Object value = getAttribute(name); Attribute attr = new Attribute(name, value); list.add(attr); } catch(Exception e) { } } return list; }
public AttributeList setAttributes(AttributeList attributeList) { AttributeList list = new AttributeList(); for(int n = 0; n < attributeList.size(); n ++) { Attribute attr = (Attribute) attributeList.get(n); try { setAttribute(attr); list.add(attr); } catch(Exception e) { } } return list; } // End DynamicMBean interfaces
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { String name = attribute.getName(); String value = (String) attribute.getValue(); if( name.equals("AuthConfig") ) { try { setAuthConfig(value); } catch(Exception e) { throw new MBeanException(e); } } else throw PicketBoxMessages.MESSAGES.invalidMBeanAttribute(name); }
public AttributeList getAttributes(String[] names) { AttributeList list = new AttributeList(); for(int n = 0; n < names.length; n ++) { String name = names[n]; try { Object value = getAttribute(name); Attribute attr = new Attribute(name, value); list.add(attr); } catch(Exception e) { } } return list; }
public Object invoke(String method, Object[] args, String[] signature) throws MBeanException, ReflectionException { Object value = null; if( method.equals("getConfiguration") ) { Configuration currentConfig = (Configuration) args[0]; value = this.getConfiguration(currentConfig); } return value; }
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException { if( name.equals("AuthConfig") ) return getAuthConfig(); throw PicketBoxMessages.MESSAGES.invalidMBeanAttribute(name); }