Class AbstractAnnotatedMethodInvoker<T extends Annotation>

java.lang.Object
org.zkoss.bind.impl.AbstractAnnotatedMethodInvoker<T>

public abstract class AbstractAnnotatedMethodInvoker<T extends Annotation> extends Object
To help calling a ViewModel annotated method with binding arguments.
Author:
Ian Y.T Tsai(zanyking)
See Also:
  • Constructor Details

    • AbstractAnnotatedMethodInvoker

      public AbstractAnnotatedMethodInvoker(Class<T> annoClass, Map<Class<?>,List<Method>> annoMethodCache)
  • Method Details

    • hasAnnotatedMethod

      public boolean hasAnnotatedMethod(Binder binder)
    • invokeMethod

      public void invokeMethod(Binder binder, Map<String,Object> bindingArgs)
    • invokeMethod

      public void invokeMethod(Binder binder, Map<String,Object> bindingArgs, org.zkoss.zk.ui.event.Event triggeringEvent, boolean notifyChange)
    • handleNotifyChange

      protected void handleNotifyChange(Binder binder, BindContext ctx, Object viewModel, Method m, ParamCall parCall, Set<Property> changes)
    • fireNotifyChanges

      protected void fireNotifyChanges(Binder binder, Set<Property> changes)
    • shouldLookupSuperclass

      protected abstract boolean shouldLookupSuperclass(T annotation)
      Verify if the super classes need to be traced.
      Parameters:
      annotation -
      Returns:
      true, if handler should trace super class, false otherwise.