资 源 简 介
The gwt-bean-reflect API provide a very simple tool for using java bean properties by reflection.
Usage :
1st Step : Configure your GWT module
```
```
2nd Step : Prepare your JavaBean
Your bean must implements ReflectedBean.
```
public class MyReflectedBean implements ReflectedBean {
private String myProperty;
public String getMyProperty() {
return myProperty;
}
public void setMyProperty(String myProperty) {
this.myProperty = myProperty;
}
}
```
3rd Step : Create a BeanManager
```
BeanManager manager = GWT.create(MyReflectedBean.class);
```
Last Step : You can use you bean without getters and setters
```
//Put a bean into the manager
MyReflectedBean myBean = new MyReflectedBean();
manager.setBean(myBean);
//Set and get the value of a property by the manager