public void setManageableAttributes(String[] manageableAttributes) { for (int i = 0; i < manageableAttributes.length; i++) { String attributeName = manageableAttributes[i]; GAttributeInfo attribute = (GAttributeInfo) attributes.get(attributeName); if (attribute != null) { attributes.put(attributeName, new GAttributeInfo(attributeName, attribute.getType(), attribute.isPersistent(), true, attribute.getGetterName(), attribute.getSetterName())); } } }
String attribName = attribInfo.getName(); map.put("name", attribName); map.put("getterName", attribInfo.getGetterName()); map.put("setterName", attribInfo.getSetterName()); map.put("type", attribInfo.getType());
attribute.isPersistent() || persistentNames.contains(attributeName), attribute.isManageable() || manageableNames.contains(attributeName), attribute.getGetterName(), method.getName()));
public void setPersistentAttributes(String[] persistentAttributes) { for (int i = 0; i < persistentAttributes.length; i++) { String attributeName = persistentAttributes[i]; GAttributeInfo attribute = (GAttributeInfo) attributes.get(attributeName); if (attribute != null && !references.containsKey(attributeName)) { if (isMagicAttribute(attribute)) { // magic attributes can't be persistent continue; } attributes.put(attributeName, new GAttributeInfo(attributeName, attribute.getType(), true, attribute.isManageable(), attribute.getGetterName(), attribute.getSetterName())); } else { if (attributeName.equals("kernel")) { addAttribute("kernel", Kernel.class, false); } else if (attributeName.equals("classLoader")) { addAttribute("classLoader", ClassLoader.class, false); } else if (attributeName.equals("abstractName")) { addAttribute("abstractName", AbstractName.class, false); } else if (attributeName.equals("objectName")) { addAttribute("obectName", String.class, false); } } } }
this.readable, this.writable, attributeInfo.getGetterName(), attributeInfo.getSetterName()); } else {
if (attributeInfo.getGetterName() != null) { try { String getterName = attributeInfo.getGetterName(); Method getterMethod = gbeanInstance.getType().getMethod(getterName, null);