Filter content of a bean according to fields list. Fields list should be in lower case. And support sub objects using dot notation. For example to get only the "name" field of the object in the "view" field, specify "view.name" (and also specify "view" to get the view itself). Use "*" to get all fields, or "view.*" all sub fields of view (see tests). Note that specifying "view" does NOT imply "view.*" and that specifying "view.*" require specifying "view" in order to get the view itself. (Note that the processBeanFilter resolve the last limitation) Note this code create a new object for each filtered object. Filtering can be done also using cglib.InterfaceMaker and reflect.Proxy.makeProxyInstance That results with an object that have same finger print as source, but cannot be cast to it.
@since 2.0.0
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.