Class JavaBeanValueResolver
- java.lang.Object
-
- com.github.jknack.handlebars.context.MemberValueResolver<java.lang.reflect.Method>
-
- com.github.jknack.handlebars.context.MethodValueResolver
-
- com.github.jknack.handlebars.context.JavaBeanValueResolver
-
- All Implemented Interfaces:
ValueResolver
public class JavaBeanValueResolver extends MethodValueResolver
A JavaBean method value resolver.- Since:
- 0.1.1
-
-
Field Summary
Fields Modifier and Type Field Description static ValueResolver
INSTANCE
The default value resolver.-
Fields inherited from interface com.github.jknack.handlebars.ValueResolver
UNRESOLVED
-
-
Constructor Summary
Constructors Constructor Description JavaBeanValueResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.reflect.Method method, java.lang.String name)
True, if the member matches the one we look for.-
Methods inherited from class com.github.jknack.handlebars.context.MemberValueResolver
propertySet, resolve, resolve
-
-
-
-
Field Detail
-
INSTANCE
public static final ValueResolver INSTANCE
The default value resolver.
-
-
Method Detail
-
matches
public boolean matches(java.lang.reflect.Method method, java.lang.String name)
Description copied from class:MemberValueResolver
True, if the member matches the one we look for.- Overrides:
matches
in classMethodValueResolver
- Parameters:
method
- The classMember
.name
- The attribute's name.- Returns:
- True, if the member matches the one we look for.
-
-