Package org.zkoss.bind.impl
Class DefaultViewModelAnnotationResolver
java.lang.Object
org.zkoss.bind.impl.DefaultViewModelAnnotationResolver
- All Implemented Interfaces:
ViewModelAnnotationResolver
public class DefaultViewModelAnnotationResolver
extends Object
implements ViewModelAnnotationResolver
A default view model annotation resolver
- Author:
- jameschu
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
DefaultViewModelAnnotationResolver
public DefaultViewModelAnnotationResolver()
-
-
Method Details
-
getAnnotation
Description copied from interface:ViewModelAnnotationResolverGet the specific annotation from the method- Specified by:
getAnnotationin interfaceViewModelAnnotationResolver- Returns:
- T annotation
-
getAnnotation
Description copied from interface:ViewModelAnnotationResolverGet the specific annotation from the class- Specified by:
getAnnotationin interfaceViewModelAnnotationResolver- Returns:
- T annotation
-
getOriginalMethod
Description copied from interface:ViewModelAnnotationResolverGet original method (if proxied)- Specified by:
getOriginalMethodin interfaceViewModelAnnotationResolver- Returns:
- Method
-