attributeInfo = new GAttributeInfo(this.name, this.type.getName(), this.persistent,
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())); } } }
public void addAttribute(String name, String type, boolean persistent, boolean manageable) { String getter = searchForGetter(name, type, gbeanType); String setter = searchForSetter(name, type, gbeanType); addAttribute(new GAttributeInfo(name, type, persistent, manageable, getter, setter)); }
if (attribute == null) { attributes.put(attributeName, new GAttributeInfo(attributeName, attributeType, persistentNames.contains(attributeName), new GAttributeInfo(attributeName, attributeType, attribute.isPersistent() || persistentNames.contains(attributeName), if (attribute == null) { attributes.put(attributeName, new GAttributeInfo(attributeName, attributeType, persistentNames.contains(attributeName), new GAttributeInfo(attributeName, attributeType, attribute.isPersistent() || persistentNames.contains(attributeName),
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.attributeInfo = new GAttributeInfo(this.name, this.type.getName(), this.persistent, attributeInfo.getSetterName()); } else { this.attributeInfo = new GAttributeInfo(this.name, this.type.getName(), this.persistent,