Package org.zkoss.bind
Interface ViewModelAnnotationResolver
- All Known Implementing Classes:
DefaultViewModelAnnotationResolver
public interface ViewModelAnnotationResolver
The annotation resolver to handle annotations in view model.
- Since:
- 9.6.0
- Author:
- jameschu
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class clazz, Class<T> annotationClass) Get the specific annotation from the class<T extends Annotation>
TgetAnnotation(Method method, Class<T> annotationClass) Get the specific annotation from the methodgetOriginalMethod(Object base, Method method) Get original method (if proxied)
-
Method Details
-
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
-