Interface LogProperty

All Known Implementing Classes:
ConsoleHandlerProperty, FileHandlerProperty, GlassFishLogFormatter.GlassFishLogFormatterProperty, GlassFishLogHandlerProperty, GlassFishLogManagerProperty, ODLLogFormatter.ODLFormatterProperty, OneLineFormatter.OneLineFormatterProperty, SimpleLogHandler.SimpleLogHandlerProperty, SyslogHandlerProperty, UniformLogFormatter.UniformFormatterProperty
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LogProperty
Representation of a key in logging.properties file.

The representation is basically relative to some bussiness object of the JUL system..

Author:
David Matejcek
  • Method Details

    • getPropertyName

      String getPropertyName()
      Returns:
      a name of the property, used as a last part of property name in logging.properties
    • getPropertyFullName

      default String getPropertyFullName(Class<?> bussinessObjectClass)
      Concatenates the Class.getName() with a dot and getPropertyName()
      Parameters:
      bussinessObjectClass -
      Returns:
      complete name of the property, used to access the value.
    • getPropertyFullName

      default String getPropertyFullName(String prefix)
      Concatenates the prefix with a dot and getPropertyName(). If the prefix is null or an empty String, returns just getPropertyName() without the dot.
      Parameters:
      prefix -
      Returns:
      complete name of the property, used to access the value.