Package org.apache.logging.log4j.util
Class PropertySource.Util
java.lang.Object
org.apache.logging.log4j.util.PropertySource.Util
- Enclosing interface:
PropertySource
Utility methods useful for PropertySource implementations.
- Since:
- 2.10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<CharSequence, List<CharSequence>> private static final String
private static final Pattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequence
joinAsCamelCase
(Iterable<? extends CharSequence> tokens) Joins a list of strings using camelCaseConventions.static List
<CharSequence> tokenize
(CharSequence value) Converts a property name string into a list of tokens.
-
Field Details
-
PREFIXES
- See Also:
-
PROPERTY_TOKENIZER
-
CACHE
-
-
Constructor Details
-
Util
private Util()
-
-
Method Details
-
tokenize
Converts a property name string into a list of tokens. This will strip a prefix oflog4j
,log4j2
,Log4j
, ororg.apache.logging.log4j
, along with separators of dash-
, dot.
, underscore_
, and slash/
. Tokens can also be separated by camel case conventions without needing a separator character in between.- Parameters:
value
- property name- Returns:
- the property broken into lower case tokens
-
joinAsCamelCase
Joins a list of strings using camelCaseConventions.- Parameters:
tokens
- tokens to convert- Returns:
- tokensAsCamelCase
-