The tool for creation of bean proxies.
You can use it as a maven dependency:
<dependency>
<groupId>org.jmmo</groupId>
<artifactId>bean-proxy</artifactId>
<version>1.0</version>
</dependency>
Or download the latest build at: https://github.com/megaprog/bean-proxy/releases
Let we have the interface
public interface Example {
int getIntValue();
void setIntValue(int value);
}
And some map
Map<String, Object> values = new HashMap<>();
values.put("intValue", 1);
We need to create Example class instance with properties corresponded to values map. Gotcha!
Example example = BeanProxy.create(Example.class, values);