this.dataFormatType = dataFormatType;
}
@Override
public Processor createProcessor(RouteContext routeContext) {
DataFormatType type = getDataFormatType();
if (type == null) {
notNull(ref, "ref or dataFormatType");
type = routeContext.lookup(ref, DataFormatType.class);
}
DataFormat dataFormat = type.getDataFormat(routeContext);
return new UnmarshalProcessor(dataFormat);
}