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

cc.shacocloud.mirage.web.bind.WebDataBinderFactory Maven / Gradle / Ivy

package cc.shacocloud.mirage.web.bind;

import cc.shacocloud.mirage.web.HttpRequest;
import org.jetbrains.annotations.Nullable;

/**
 * 用于为已命名的目标对象创建{@link WebDataBinder}实例的工厂
 */
public interface WebDataBinderFactory {

    /**
     * 为给定对象创建{@link WebDataBinder}
     *
     * @param request    当前请求
     * @param target     要为其创建数据绑定的对象,如果为简单类型创建绑定,则为{@code null}
     * @param objectName 目标对象的名称
     * @return 创建的 {@link WebDataBinder} 实例,决不为空
     */
    WebDataBinder createBinder(HttpRequest request, @Nullable Object target, String objectName);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy