It works on all read/write properties, recursively. It support all primitive types, Strings, Collections,
ToString objects and multi-dimensional arrays of any of them.
Creates a ToStringBean to be used in a delegation pattern.
For example:
public class Foo implements ToString {
public String toString(String prefix) {
ToStringBean tsb = new ToStringBean(this);
return tsb.toString(prefix);
}
public String toString() {
return toString("Foo");
}
}
Parameters: beanClass - indicates the class to scan for properties, normally an interface class. Parameters: obj - object bean to create String representation.