/** * Filter the content in the supplied {@link Source} instance, outputing data * to the supplied {@link Result} instances. * * @param executionContext The {@link ExecutionContext} for this filter operation. See * {@link #createExecutionContext(String)}. * @param source The filter Source. * @param results The filter Results. * @throws SmooksException Failed to filter. */ public void filterSource(ExecutionContext executionContext, Source source, Result... results) throws SmooksException { AssertArgument.isNotNull(source, "source"); AssertArgument.isNotNull(executionContext, "executionContext"); if(classLoader != null) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { _filter(executionContext, source, results); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } else { _filter(executionContext, source, results); } }
/** * Filter the content in the supplied {@link Source} instance, outputing data * to the supplied {@link Result} instances. * * @param executionContext The {@link ExecutionContext} for this filter operation. See * {@link #createExecutionContext(String)}. * @param source The filter Source. * @param results The filter Results. * @throws SmooksException Failed to filter. */ public void filterSource(ExecutionContext executionContext, Source source, Result... results) throws SmooksException { AssertArgument.isNotNull(source, "source"); AssertArgument.isNotNull(executionContext, "executionContext"); if(classLoader != null) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { _filter(executionContext, source, results); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } else { _filter(executionContext, source, results); } }
/** * Filter the content in the supplied {@link Source} instance, outputing data * to the supplied {@link Result} instances. * * @param executionContext The {@link ExecutionContext} for this filter operation. See * {@link #createExecutionContext(String)}. * @param source The filter Source. * @param results The filter Results. * @throws SmooksException Failed to filter. */ public void filterSource(ExecutionContext executionContext, Source source, Result... results) throws SmooksException { AssertArgument.isNotNull(source, "source"); AssertArgument.isNotNull(executionContext, "executionContext"); if(classLoader != null) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { _filter(executionContext, source, results); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } else { _filter(executionContext, source, results); } }
/** * Filter the content in the supplied {@link Source} instance, outputing data * to the supplied {@link Result} instances. * * @param executionContext The {@link ExecutionContext} for this filter operation. See * {@link #createExecutionContext(String)}. * @param source The filter Source. * @param results The filter Results. * @throws SmooksException Failed to filter. */ public void filterSource(ExecutionContext executionContext, Source source, Result... results) throws SmooksException { AssertArgument.isNotNull(source, "source"); AssertArgument.isNotNull(executionContext, "executionContext"); if(classLoader != null) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); try { _filter(executionContext, source, results); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } else { _filter(executionContext, source, results); } }