/** * Runs all {@link PreTransform} in the chain * * @param item * @param data */ public void pre(ImportTask item, ImportData data) throws Exception { for (PreTransform tx : filter(transforms, PreTransform.class)) { try { tx.apply(item, data); } catch (Exception e) { error(tx, e); } } }
/** * Runs all {@link PostTransform} in the chain * * @param item * @param data */ public void post(ImportTask task, ImportData data) throws Exception { for (PostTransform tx : filter(transforms, PostTransform.class)) { try { tx.apply(task, data); } catch (Exception e) { error(tx, e); } } }