Class MethodValueResolver

java.lang.Object
com.github.jknack.handlebars.context.MemberValueResolver<Method>
com.github.jknack.handlebars.context.MethodValueResolver
All Implemented Interfaces:
ValueResolver
Direct Known Subclasses:
JavaBeanValueResolver

@Deprecated(since="2024-07-10") public class MethodValueResolver extends MemberValueResolver<Method>
Deprecated.
com.github.jknack.handlebars.context package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
A specialization of MemberValueResolver with lookup and invocation support for Method. It matches a public method.
Since:
0.1.1
  • Field Details

    • INSTANCE

      public static final ValueResolver INSTANCE
      Deprecated.
      The default instance.
  • Constructor Details

    • MethodValueResolver

      public MethodValueResolver()
      Deprecated.
  • Method Details

    • matches

      public boolean matches(Method method, String name)
      Deprecated.
      Description copied from class: MemberValueResolver
      True, if the member matches the one we look for.
      Specified by:
      matches in class MemberValueResolver<Method>
      Parameters:
      method - The class Member.
      name - The attribute's name.
      Returns:
      True, if the member matches the one we look for.