Interface ValueResolver

All Known Implementing Classes:
FieldValueResolver, JavaBeanValueResolver, MapValueResolver, MemberValueResolver, MethodValueResolver

@Deprecated(since="2024-07-10") public interface ValueResolver
Deprecated.
com.github.jknack.handlebars package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
A hook interface for resolving values from the context stack.
Since:
0.1.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Object
    Deprecated.
    A mark object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Default value resolvers.
    Deprecated.
    List all the properties and their values for the given object.
    resolve(Object context)
    Deprecated.
    Resolve the the context object by optionally converting the value if necessary.
    resolve(Object context, String name)
    Deprecated.
    Resolve the attribute's name in the context object.
  • Field Details

    • UNRESOLVED

      static final Object UNRESOLVED
      Deprecated.
      A mark object.
  • Method Details

    • resolve

      Object resolve(Object context, String name)
      Deprecated.
      Resolve the attribute's name in the context object. If a UNRESOLVED is returned, the context stack will continue with the next value resolver in the chain.
      Parameters:
      context - The context object. Not null.
      name - The attribute's name. Not null.
      Returns:
      A UNRESOLVED is returned, the context stack will continue with the next value resolver in the chain. Otherwise, it returns the associated value.
    • resolve

      Object resolve(Object context)
      Deprecated.
      Resolve the the context object by optionally converting the value if necessary. If a UNRESOLVED is returned, the context stack will continue with the next value resolver in the chain.
      Parameters:
      context - The context object. Not null.
      Returns:
      A UNRESOLVED is returned, the context stack will continue with the next value resolver in the chain. Otherwise, it returns the associated value.
    • propertySet

      Set<Map.Entry<String,Object>> propertySet(Object context)
      Deprecated.
      List all the properties and their values for the given object.
      Parameters:
      context - The context object. Not null.
      Returns:
      All the properties and their values for the given object.
    • defaultValueResolvers

      static List<ValueResolver> defaultValueResolvers()
      Deprecated.
      Default value resolvers. Including: - MapValueResolver - JavaBeanValueResolver - MethodValueResolver. On Java 14 or higher.
      Returns:
      Immutable list of value resolvers.