- 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.
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 Summary
Modifier and TypeMethodDescriptiondefault StringgetPropertyFullName(Class<?> bussinessObjectClass) Concatenates theClass.getName()with a dot andgetPropertyName()default StringgetPropertyFullName(String prefix) Concatenates the prefix with a dot andgetPropertyName().
-
Method Details
-
getPropertyName
String getPropertyName()- Returns:
- a name of the property, used as a last part of property name in logging.properties
-
getPropertyFullName
Concatenates theClass.getName()with a dot andgetPropertyName()- Parameters:
bussinessObjectClass-- Returns:
- complete name of the property, used to access the value.
-
getPropertyFullName
Concatenates the prefix with a dot andgetPropertyName(). If the prefix is null or an empty String, returns justgetPropertyName()without the dot.- Parameters:
prefix-- Returns:
- complete name of the property, used to access the value.
-