public class CollectingLoggingValidationEventHandlerFactory extends Object implements IValidationEventHandlerFactory
IValidationEventHandlerFactory creating
CollectingValidationEventHandler encapsulating
LoggingValidationEventHandler objects.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENCAPSULATE_HANDLER
By default the old event handler is encapsulated into the created
LoggingValidationEventHandler. |
| Constructor and Description |
|---|
CollectingLoggingValidationEventHandlerFactory() |
CollectingLoggingValidationEventHandlerFactory(boolean bEncapsulateHandler) |
| Modifier and Type | Method and Description |
|---|---|
CollectingValidationEventHandler |
create(ValidationEventHandler aOldEventHandler)
Create a validation event handler
|
boolean |
isEncapsulateHandler() |
public static final boolean DEFAULT_ENCAPSULATE_HANDLER
LoggingValidationEventHandler.public CollectingLoggingValidationEventHandlerFactory()
public CollectingLoggingValidationEventHandlerFactory(boolean bEncapsulateHandler)
public boolean isEncapsulateHandler()
@Nonnull public CollectingValidationEventHandler create(@Nullable ValidationEventHandler aOldEventHandler)
IValidationEventHandlerFactorycreate in interface IFactoryWithParameter<ValidationEventHandler,ValidationEventHandler>create in interface IValidationEventHandlerFactoryaOldEventHandler - The previous event handler that optionally may be encapsulated.null to
indicate that the default event handler should be used.Copyright © 2014–2015 Philip Helger. All rights reserved.