All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.bind.impl.DefaultViewModelAnnotationResolver Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/* DefaultViewModelAnnotationResolver.java
	Purpose:

	Description:

	History:
		Tue Mar 23 17:39:46 CST 2021, Created by jameschu

Copyright (C) 2021 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind.impl;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

import org.zkoss.bind.ViewModelAnnotationResolver;

/**
 * A default view model annotation resolver
 * @author jameschu
 */
public class DefaultViewModelAnnotationResolver implements ViewModelAnnotationResolver {
	public  T getAnnotation(Method method, Class annotationClass) {
		return method.getAnnotation(annotationClass);
	}

	public  T getAnnotation(Class clazz, Class annotationClass) {
		return (T) clazz.getAnnotation(annotationClass);
	}

	public Method getOriginalMethod(Object base, Method method) {
		return method;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy