| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.TXT | 2010-01-04 | 1.0 kB | |
| CopyObjects.jar | 2010-01-04 | 22.6 kB | |
| with_dep.zip | 2010-01-04 | 367.7 kB | |
| Totals: 3 Items | 391.3 kB | 0 | |
CopyObject is a reflection based API for Java. It uses an annotation based framework to perform copy of one Object to another.The annnotation need not be on both the objects, just annotate any one object and the framework will take care of copying in both the directions.It is also capable of copying data from nested Objects. It copies everything from primitive datatypes to Custom objects to lists. However copying of maps is not supported as of now.When copying lists it is capable of copying one type of List into a list of different type of object. The framewrok also support PreCopy and PostCopy processing on the object, with PreCopy capable of creating inner object as well. Just add CopyObject.jar to the classpath, annotate one of the classes with the annotation.and call:- ObjectPopulator.copy(Object fromObject, Object toObject, boolean annotatedClassFirst); It will automatically copy the required data of fromObject to toObject, ignoring the fields not found. Log4j is used for logging the messages.