public final class BeanInterfaceProxy extends Object implements InvocationHandler
This class creates bean instances based on an interface. This allows you, given an interface for a bean (but no implementation), to generate a bean implementation on-the-fly. This instance can then be used for fetching and storing state. It assumes all get methods starts with "get" and all set methods start with "set" and takes only 1 argument.
|Modifier and Type||Method and Description|
Creates a proxy object which implements a given bean interface.
public static <T> T createProxy(Class<T> proxyInterface)
T- the proxy implementation type
proxyInterface- the interface the the proxy will implement
NullPointerException- if proxyInterface is null
If a getter method is encountered then this method returns the stored value from the bean state (or null if the field has not been set).
If a setter method is encountered then the bean state is updated with the value of the first argument and the value is returned (to allow for method chaining)
Copyright © 2007–2015 Super CSV. All rights reserved.