Package com.helger.jaxb.validation
Class LoggingValidationEventHandler
java.lang.Object
com.helger.jaxb.validation.AbstractValidationEventHandler
com.helger.jaxb.validation.LoggingValidationEventHandler
- All Implemented Interfaces:
IValidationEventHandler,jakarta.xml.bind.ValidationEventHandler
An implementation of the JAXB
ValidationEventHandler
interface. It simply prints the messages to a logger before the original
handler handles them.- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonEvent(com.helger.commons.error.IError aEvent) Callback method invoked when an error occurs.Methods inherited from class com.helger.jaxb.validation.AbstractValidationEventHandler
continueProcessing, getErrorFieldName, getErrorLevel, getLocationResourceID, handleEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.jaxb.validation.IValidationEventHandler
andThen
-
Field Details
-
DEFAULT_INSTANCE
-
-
Constructor Details
-
LoggingValidationEventHandler
public LoggingValidationEventHandler()
-
-
Method Details
-
onEvent
Description copied from class:AbstractValidationEventHandlerCallback method invoked when an error occurs.- Specified by:
onEventin classAbstractValidationEventHandler- Parameters:
aEvent- The occurred error.
-