use of org.apache.aries.blueprint.ExtendedValueMetadata in project aries by apache.
the class ValueRecipe method internalCreate.
@Override
protected Object internalCreate() throws ComponentDefinitionException {
try {
Type type = getValueType();
Object v = null;
if (value instanceof ExtendedValueMetadata) {
v = ((ExtendedValueMetadata) value).getValue();
}
if (v == null) {
v = value.getStringValue();
}
return convert(v, type);
} catch (Exception e) {
throw new ComponentDefinitionException(e);
}
}
Aggregations