Package org.apache.logging.log4j.util
@Export
@Version("2.24.0")
package org.apache.logging.log4j.util
Internal utility classes for the Log4j 2 API. Note that the use of any classes in this package is not supported.
There are no guarantees for binary or logical compatibility in this package.
-
ClassDescriptionConsider this class private. OSGi bundle activator.Base64 encodes Strings.BiConsumer<K,
V> An operation that accepts two input arguments and returns no result.Consider this class private.Log4j API Constants.Consider this class private.PropertySource implementation that uses environment variables as a source.ExtendsObjectInputStream
to only allow some built-in Log4j classes and caller-specified classes to be deserialized.An extension ofReadOnlyStringMap
that imposes a total ordering on its keys.An extension ofStringMap
that imposes a total ordering on its keys.Indicates that the annotated element is considered an internal API to Log4j and should not be used by external code.Exception thrown when an error occurs while accessing internal resources.Utility class for lambda support.Lazy<T>Provides a lazily-initialized value from aSupplier<T>
.Consider this class private. Utility class for ClassLoaders.Classes implementing this interface know how to supplyMessage
s.A Message that can render itself in more than one way.Indicates that a particular annotated construct was written with certain performance constraints in mind that should be considered when modifying or testing.Provides the PID of the current JVM.PropertySource backed by aProperties
instance.Consider this class private.PropertySource backed by a properties file.A source for global configuration properties.Comparator for ordering PropertySource instances by priority.Utility methods useful for PropertySource implementations.Utility class to register Log4j2 providers in an OSGI environment.Consider this class private.A read-only collection of String keys mapped to values of arbitrary type.An utility class to retrieve services in a safe way.Consider this class private. Array-based implementation of theReadOnlyStringMap
interface.Consider this class private. Provides various methods to determine the caller class.Consider this class private. Provides various methods to determine the caller class.Objects that implement this interface can be converted to text, ideally without allocating temporary objects.Consider this class private.Exposes methods to add and remove key-value pairs to and fromReadOnlyStringMap
.Consider this class private.Supplier<T>Consider this class private. Classes implementing this interface know how to supply a value.PropertySource backed by the current system properties.Primarily used in unit tests, but can be used to track elapsed time for a request or portion of any other operation so long as all the timer methods are called on the same thread in which it was started.TriConsumer<K,V, S> An operation that accepts three input arguments and returns no result.Utility for preventing primitive parameter values from being auto-boxed.