public class ValueUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueUtils.ValueType
The value type of the field, activation field or constructor parameter
|
| Modifier and Type | Field and Description |
|---|---|
static ValueUtils.ValueType[] |
EMPTY_VALUE_TYPES
Empty array.
|
| Constructor and Description |
|---|
ValueUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ValueUtils.ValueType |
getReferenceValueType(Class<?> componentClass,
ReferenceMetadata metadata,
Class<?> typeClass,
Field field,
ComponentLogger logger)
Get the value type of the reference for a field/constructor argument
|
static Object |
getValue(String componentType,
ValueUtils.ValueType type,
Class<?> targetType,
ComponentContextImpl componentContext,
RefPair<?,?> refPair)
Get the value for the value type
|
static ValueUtils.ValueType |
getValueType(Class<?> typeClass)
Get the value type for the parameter class.
|
public static final ValueUtils.ValueType[] EMPTY_VALUE_TYPES
public static ValueUtils.ValueType getValueType(Class<?> typeClass)
typeClass - The class of the parameterpublic static ValueUtils.ValueType getReferenceValueType(Class<?> componentClass, ReferenceMetadata metadata, Class<?> typeClass, Field field, ComponentLogger logger)
componentClass - The component class declaring the referencemetadata - The reference metadatatypeClass - The type of the field/parameterf - The optional field. If null this is a constructor referencelogger - The loggerValueType#ignorepublic static Object getValue(String componentType, ValueUtils.ValueType type, Class<?> targetType, ComponentContextImpl componentContext, RefPair<?,?> refPair)
componentType - The class of the componenttype - The value typetargetType - Optional target type, only required for type ValueType#config_annotation.componentContext - The component contextrefPair - The ref pairnull.Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.