Interface PropertyLoggingInterceptor


public interface PropertyLoggingInterceptor
Interceptor interface for beans to modify property values that are written to the installer log file. If you wish to modify logged property values, you have to make your bean implement this interface. This can be necessary for security reasons, e.g. if a property value contains a variable that expands to a password.
  • Method Summary

    Modifier and Type
    Method
    Description
    getLogValueForProperty(String propertyName, Object propertyValue)
    Replace the value of the property for logging purposes.
  • Method Details

    • getLogValueForProperty

      Object getLogValueForProperty(String propertyName, Object propertyValue)
      Replace the value of the property for logging purposes. The returned value will not be used in any other context.
      Parameters:
      propertyName - the name of the property that is being logged.
      propertyValue - the value of the property that would be logged by default.
      Returns:
      the value that will be logged.