public void setReportPath(String reportPath) {
this._reportPath = reportPath;
}
private void init(SmooksTransformModel model) {
Exports exports = Exports.getExports(_smooks.getApplicationContext());
// Must define 1 exported result type
if (exports == null) {
_log.debug("Smooks configuration '" + model.getConfig() + "'will not make updates to the Exchange Message payload because it does not define any <core:exports>. See Smooks User Guide.");
return;
}
if (exports.getExports().size() != 1) {
throw TransformMessages.MESSAGES.smooksConfigurationNoExports();
}
_export = exports.getExports().iterator().next();
// Only support String (character based) or Java Results for now...
Class<?> exportType = _export.getType();
if (StringResult.class.isAssignableFrom(exportType)) {
return;