LegacyConfiguredObjectObject(final ConfiguredObject<?> configuredObject) { _configuredObject = configuredObject; _actualAttributes = configuredObject.getActualAttributes(); }
AttributeGettingHandler(final Map<String, Object> modifiedAttributes, Map<String, ConfiguredObjectAttribute<?,?>> attributeTypes, ConfiguredObject<?> configuredObject) { Map<String,Object> combinedAttributes = new HashMap<>(); if (configuredObject != null) { combinedAttributes.putAll(configuredObject.getActualAttributes()); } combinedAttributes.putAll(modifiedAttributes); _attributes = combinedAttributes; _attributeTypes = attributeTypes; _configuredObject = configuredObject; }
private void collectInheritedActualContext(ConfiguredObject<?> confObject, Map<String, Object> contextValues) { ConfiguredObject parent = confObject.getParent(); if(parent != null) { collectInheritedActualContext(parent, contextValues); } Object value = confObject.getActualAttributes().get(ConfiguredObject.CONTEXT); if (value instanceof Map) { contextValues.putAll((Map<String, Object>)value); } }
@Override public final T getValue(final C configuredObject) { Object value = configuredObject.getActualAttributes().get(getName()); if(value == null) { value = defaultValue(); } return convert(value, configuredObject); }
if (excludeInheritedContext) Object value = configuredObject.getActualAttributes().get(ConfiguredObject.CONTEXT); if (value instanceof Map)
for (Map.Entry<String, Object> attr : object.getActualAttributes().entrySet())
? confObject.getActualAttributes().get(name) : confObject.getAttribute(name); if (value instanceof ConfiguredObject)