org.zkoss.bind.proxy.ProxyTargetHandler Maven / Gradle / Ivy
/* ProxyTargetHandler.java
Purpose:
Description:
History:
Tue Apr 19 16:10:31 CST 2016, Created by jameschu
Copyright (C) 2016 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind.proxy;
/**
* A proxy target handler to help creating proxy on correct origin data object.
*
*
* Since 8.0.2 - You could set proxy target handler by setting listener class (it should implement this interface)
* for example:{@code
foo.BarHandler
* }
* Note: The handler instance is shared between all binders, it is not thread-safe, your implementation has to care the concurrent access issue.
* @author jameschu
* @since 8.0.2
*/
public interface ProxyTargetHandler {
/**
* Get the corresponding origin data object.
* @param origin the origin data object
*/
public T getOriginObject(T origin);
}