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

cn.featherfly.common.bean.BeanPropertyFactory Maven / Gradle / Ivy


package cn.featherfly.common.bean;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * 

* BeanPropertyFactory接口 *

* * @author 钟冀 * */ public interface BeanPropertyFactory { /** *

* 创建指定类型指定属性对应的BeanProperty *

* @param propertyName 属性名称 * @param field 存取数据的字段 * @param propertyType 属性类型 * @param setMethod 设置方法 * @param getMethod 读取方法 * @param ownerType 属性所在的类型 * @param declaringType 定义属性的类型 (可能是ownerType的父类,也可能一样) * @param 泛型 * @return 创建的BeanProperty */ BeanProperty create(String propertyName, Field field, Class propertyType, Method setMethod, Method getMethod , Class ownerType, Class declaringType); // /** // *

// * 创建指定类型指定属性对应的BeanProperty // *

// * @param type 类型 // * @param propertyName 属性名 // * @param 泛型 // * @return 创建的BeanProperty子类 // */ // BeanProperty create(Class type, String propertyName); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy