Class ValueConfig

All Implemented Interfaces:
Serializable, ConfigVisitorNode, TypeProvider
Direct Known Subclasses:
CollectionConfig, FactoryConfig, InjectedValueConfig, MapConfig, StringValueConfig

public abstract class ValueConfig extends AbstractConfigVisitorNode implements Serializable
Value meta data.
Author:
Ales Justin
See Also:
  • Constructor Details

    • ValueConfig

      public ValueConfig()
  • Method Details

    • getValue

      public Object getValue(Type type)
      Get value.
      Parameters:
      type - the type
      Returns:
      value
    • getPtValue

      protected Object getPtValue(ParameterizedType type)
      Get value.
      Parameters:
      type - the parameterized type
      Returns:
      value
    • getClassValue

      protected abstract Object getClassValue(Class<?> type)
      Get value, use type to narrow down exact value.
      Parameters:
      type - the injection point type
      Returns:
      value
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex(int index)