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())); } } }
map.put("name", attribName); map.put("getterName", attribInfo.getGetterName()); map.put("setterName", attribInfo.getSetterName()); map.put("type", attribInfo.getType()); map.put("manageable", String.valueOf(attribInfo.isManageable()));
attribute.isManageable() || manageableNames.contains(attributeName), method.getName(), attribute.getSetterName()));
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.writable, attributeInfo.getGetterName(), attributeInfo.getSetterName()); } else { this.attributeInfo = new GAttributeInfo(this.name,
if (attributeInfo.getSetterName() != null) { try { String setterName = attributeInfo.getSetterName(); Method setterMethod = gbeanInstance.getType().getMethod(setterName, new Class[]{type}); if (AbstractGBeanReference.NO_PROXY) {