Class DefaultVetoStrategy

java.lang.Object
org.jvnet.basicjaxb.lang.DefaultVetoStrategy
All Implemented Interfaces:
VetoStrategy

public class DefaultVetoStrategy extends Object implements VetoStrategy
Reflection-free vetoPropertyChange(...) strategy to veto a Bean property change.

Provides Logger for escalation and/or tracing.

  • Constructor Details

    • DefaultVetoStrategy

      public DefaultVetoStrategy()
  • Method Details

    • getInstance

      public static DefaultVetoStrategy getInstance()
    • getLogger

      public org.slf4j.Logger getLogger()
      Specified by:
      getLogger in interface VetoStrategy
    • warn

      public void warn(String message, Object... args)
      Subclasses can override this method to log the warning message, as desired.
      Parameters:
      message - The message format.
      args - The message arguments plus the exception.
    • error

      public void error(String message, Object... args)
      Subclasses can override this method to log the error message, as desired.
      Parameters:
      message - The message format.
      args - The message arguments plus the exception.
    • vetoPropertyChange

      public boolean vetoPropertyChange(PropertyChangeEvent event, PropertyVetoException ex)
      Strategy to handle a property veto.
      Specified by:
      vetoPropertyChange in interface VetoStrategy