public class ValueUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
ValueUtils.MapEntryImpl
Comparable map entry using the service reference to compare.
|
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 |
|---|---|
private static java.lang.Object |
getLogger(java.lang.String componentType,
java.lang.Class<?> targetType,
ComponentContextImpl componentContext,
RefPair<?,?> refPair) |
static ValueUtils.ValueType |
getReferenceValueType(java.lang.Class<?> componentClass,
ReferenceMetadata metadata,
java.lang.Class<?> typeClass,
java.lang.reflect.Field field,
ComponentLogger logger)
Get the value type of the reference for a field/constructor argument
|
static java.lang.Object |
getValue(java.lang.String componentType,
ValueUtils.ValueType type,
java.lang.Class<?> targetType,
ComponentContextImpl componentContext,
RefPair<?,?> refPair)
Get the value for the value type
|
static ValueUtils.ValueType |
getValueType(java.lang.Class<?> typeClass)
Get the value type for the parameter class.
|
public static final ValueUtils.ValueType[] EMPTY_VALUE_TYPES
public static ValueUtils.ValueType getValueType(java.lang.Class<?> typeClass)
typeClass - The class of the parameterpublic static ValueUtils.ValueType getReferenceValueType(java.lang.Class<?> componentClass, ReferenceMetadata metadata, java.lang.Class<?> typeClass, java.lang.reflect.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 java.lang.Object getValue(java.lang.String componentType,
ValueUtils.ValueType type,
java.lang.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.private static java.lang.Object getLogger(java.lang.String componentType,
java.lang.Class<?> targetType,
ComponentContextImpl componentContext,
RefPair<?,?> refPair)