Package org.zkoss.bind.impl
Class AbstractAnnotatedMethodInvoker<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- org.zkoss.bind.impl.AbstractAnnotatedMethodInvoker<T>
-
public abstract class AbstractAnnotatedMethodInvoker<T extends java.lang.annotation.Annotation> extends java.lang.ObjectTo help calling a ViewModel annotated method with binding arguments.- Author:
- Ian Y.T Tsai(zanyking)
- See Also:
Init,AfterCompose
-
-
Constructor Summary
Constructors Constructor Description AbstractAnnotatedMethodInvoker(java.lang.Class<T> annoClass, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> annoMethodCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidfireNotifyChanges(Binder binder, java.util.Set<Property> changes)protected voidhandleNotifyChange(Binder binder, BindContext ctx, java.lang.Object viewModel, java.lang.reflect.Method m, ParamCall parCall, java.util.Set<Property> changes)booleanhasAnnotatedMethod(Binder binder)voidinvokeMethod(Binder binder, java.util.Map<java.lang.String,java.lang.Object> bindingArgs)voidinvokeMethod(Binder binder, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, org.zkoss.zk.ui.event.Event triggeringEvent, boolean notifyChange)protected abstract booleanshouldLookupSuperclass(T annotation)Verify if the super classes need to be traced.
-
-
-
Constructor Detail
-
AbstractAnnotatedMethodInvoker
public AbstractAnnotatedMethodInvoker(java.lang.Class<T> annoClass, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> annoMethodCache)
-
-
Method Detail
-
hasAnnotatedMethod
public boolean hasAnnotatedMethod(Binder binder)
-
invokeMethod
public void invokeMethod(Binder binder, java.util.Map<java.lang.String,java.lang.Object> bindingArgs)
-
invokeMethod
public void invokeMethod(Binder binder, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, org.zkoss.zk.ui.event.Event triggeringEvent, boolean notifyChange)
-
handleNotifyChange
protected void handleNotifyChange(Binder binder, BindContext ctx, java.lang.Object viewModel, java.lang.reflect.Method m, ParamCall parCall, java.util.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.
-
-