Package org.zkoss.bind.init
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
TgetAnnotation(Class clazz, Class<T> annotationClass) Get the specific annotation from the classstatic <T extends Annotation>
TgetAnnotation(Method method, Class<T> annotationClass) Get the specific annotation from the methodstatic MethodgetOriginalMethod(Object base, Method method) Get original method (if proxied)boolean
-
Constructor Details
-
ViewModelAnnotationResolvers
public ViewModelAnnotationResolvers()
-
-
Method Details
-
isHandled
- Specified by:
isHandledin interfaceorg.zkoss.zk.ui.util.AggregationListener
-
getAnnotation
Get the specific annotation from the method- Parameters:
method-annotationClass-- Returns:
- T annotation
- Since:
- 9.6.0
-
getAnnotation
Get the specific annotation from the class- Parameters:
clazz-annotationClass-- Returns:
- T annotation
- Since:
- 9.6.0
-
getOriginalMethod
Get original method (if proxied)- Parameters:
base-method-- Returns:
- Method
- Since:
- 9.6.0
-