Class ViewModelAnnotationResolvers

java.lang.Object
org.zkoss.bind.init.ViewModelAnnotationResolvers
All Implemented Interfaces:
org.zkoss.zk.ui.util.AggregationListener

public class ViewModelAnnotationResolvers extends Object implements org.zkoss.zk.ui.util.AggregationListener
An aggregating view model annotation resolvers.
Since:
9.6.0
Author:
jameschu
See Also:
  • Constructor Details

    • ViewModelAnnotationResolvers

      public ViewModelAnnotationResolvers()
  • Method Details

    • isHandled

      public boolean isHandled(Class<?> klass)
      Specified by:
      isHandled in interface org.zkoss.zk.ui.util.AggregationListener
    • getAnnotation

      public static <T extends Annotation> T getAnnotation(Method method, Class<T> annotationClass)
      Get the specific annotation from the method
      Parameters:
      method -
      annotationClass -
      Returns:
      T annotation
      Since:
      9.6.0
    • getAnnotation

      public static <T extends Annotation> T getAnnotation(Class clazz, Class<T> annotationClass)
      Get the specific annotation from the class
      Parameters:
      clazz -
      annotationClass -
      Returns:
      T annotation
      Since:
      9.6.0
    • getOriginalMethod

      public static Method getOriginalMethod(Object base, Method method)
      Get original method (if proxied)
      Parameters:
      base -
      method -
      Returns:
      Method
      Since:
      9.6.0