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 java.lang.Object implements org.zkoss.zk.ui.util.AggregationListenerAn aggregating view model annotation resolvers.- Since:
- 9.6.0
- Author:
- jameschu
- See Also:
ViewModelAnnotationResolver
-
-
Constructor Summary
Constructors Constructor Description ViewModelAnnotationResolvers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class clazz, java.lang.Class<T> annotationClass)Get the specific annotation from the classstatic <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.reflect.Method method, java.lang.Class<T> annotationClass)Get the specific annotation from the methodstatic java.lang.reflect.MethodgetOriginalMethod(java.lang.Object base, java.lang.reflect.Method method)Get original method (if proxied)booleanisHandled(java.lang.Class<?> klass)
-
-
-
Method Detail
-
isHandled
public boolean isHandled(java.lang.Class<?> klass)
- Specified by:
isHandledin interfaceorg.zkoss.zk.ui.util.AggregationListener
-
getAnnotation
public static <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.reflect.Method method, java.lang.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 java.lang.annotation.Annotation> T getAnnotation(java.lang.Class clazz, java.lang.Class<T> annotationClass)Get the specific annotation from the class- Parameters:
clazz-annotationClass-- Returns:
- T annotation
- Since:
- 9.6.0
-
getOriginalMethod
public static java.lang.reflect.Method getOriginalMethod(java.lang.Object base, java.lang.reflect.Method method)Get original method (if proxied)- Parameters:
base-method-- Returns:
- Method
- Since:
- 9.6.0
-
-