Class ClassResourceInfo
java.lang.Object
org.apache.logging.log4j.core.pattern.ClassResourceInfo
Resource information (i.e., the enclosing JAR file and its version) of a class.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Class<?> private final Consumer<StringBuilder> (package private) static final ClassResourceInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructs an instance modelling an unknown class resource.(package private)ClassResourceInfo(Class<?> clazz, boolean exact) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetLocation(Class<?> clazz) private static StringgetVersion(Class<?> clazz) (package private) voidrender(StringBuilder buffer)
-
Field Details
-
UNKNOWN
-
renderer
-
clazz
-
-
Constructor Details
-
ClassResourceInfo
private ClassResourceInfo()Constructs an instance modelling an unknown class resource. -
ClassResourceInfo
ClassResourceInfo(Class<?> clazz, boolean exact) - Parameters:
clazz- the classexact-true, if the class was obtained via reflection;false, otherwise
-
-
Method Details
-
getLocation
-
getVersion
-
render
-