/** * Set an implementation of the {@link javax.xml.transform.ErrorListener} * interface for custom handling of transformation errors and warnings. * <p>If not set, a default * {@link org.springframework.util.xml.SimpleTransformErrorListener} is * used that simply logs warnings using the logger instance of the view class, * and rethrows errors to discontinue the XML transformation. * @see org.springframework.util.xml.SimpleTransformErrorListener */ public void setErrorListener(@Nullable ErrorListener errorListener) { this.errorListener = (errorListener != null ? errorListener : new SimpleTransformErrorListener(logger)); }
/** * Set an implementation of the {@link javax.xml.transform.ErrorListener} * interface for custom handling of transformation errors and warnings. * <p>If not set, a default * {@link org.springframework.util.xml.SimpleTransformErrorListener} is * used that simply logs warnings using the logger instance of the view class, * and rethrows errors to discontinue the XML transformation. * @see org.springframework.util.xml.SimpleTransformErrorListener */ public void setErrorListener(@Nullable ErrorListener errorListener) { this.errorListener = (errorListener != null ? errorListener : new SimpleTransformErrorListener(logger)); }
/** * Set an implementation of the {@link javax.xml.transform.ErrorListener} * interface for custom handling of transformation errors and warnings. * <p>If not set, a default * {@link org.springframework.util.xml.SimpleTransformErrorListener} is * used that simply logs warnings using the logger instance of the view class, * and rethrows errors to discontinue the XML transformation. * @see org.springframework.util.xml.SimpleTransformErrorListener */ public void setErrorListener(ErrorListener errorListener) { this.errorListener = (errorListener != null ? errorListener : new SimpleTransformErrorListener(logger)); }
public XSLTComponent() { this.errorListener = new SimpleTransformErrorListener(LogFactory.getLog(this.getClass())); }
public XSLTComponent() { this.errorListener = new SimpleTransformErrorListener(LogFactory.getLog(this.getClass())); }