tools.dynamia.reports.ReportDataSource Maven / Gradle / Ivy
package tools.dynamia.reports;
import java.util.Collection;
/**
* Simple wrapper for report datasource, when is used in report params the param value will be replaced with a
* proper report engine value. For example
*
*
*
* params.put("details",new ReportDatasource(collection));
*
* //will be replace to something like:
*
* params.put("details",new JRBeanCollectionDatasource(collection));
*
*
*/
public class ReportDataSource {
private final Object value;
public ReportDataSource(Object value) {
this.value = value;
}
public ReportDataSource(Collection value) {
this.value = value;
}
public Object getValue() {
return value;
}
}