Class ReachabilityMetadata
java.lang.Object
org.apache.logging.log4j.core.config.plugins.processor.internal.ReachabilityMetadata
Provides support for the
reachability-metadata.json
file format.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies a field that needs to be accessed through reflection.static final classSpecifies a method that needs to be accessed through reflection.private static final classstatic final classCollection of reflection metadata.static final classSpecifies a Java type that needs to be accessed through reflection. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey used to specify the name of a field or methodstatic final StringKey used to specify the list of fields available for reflection.static final StringKey used to specify the list of methods available for reflection.static final StringKey used to list the method parameter types.static final StringKey used to specify the name of a type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteReflectConfig(Collection<ReachabilityMetadata.Type> types, OutputStream output) Writes the contents of areflect-config.jsonfile.
-
Field Details
-
FIELD_OR_METHOD_NAME
Key used to specify the name of a field or method- See Also:
-
PARAMETER_TYPES
Key used to list the method parameter types.- See Also:
-
TYPE_NAME
Key used to specify the name of a type.Since GraalVM for JDK 23 it will be called "type".
- See Also:
-
FIELDS
Key used to specify the list of fields available for reflection.- See Also:
-
METHODS
Key used to specify the list of methods available for reflection.- See Also:
-
-
Constructor Details
-
ReachabilityMetadata
private ReachabilityMetadata()
-
-
Method Details
-
writeReflectConfig
public static void writeReflectConfig(Collection<ReachabilityMetadata.Type> types, OutputStream output) throws IOException Writes the contents of areflect-config.jsonfile.- Parameters:
types- The reflection metadata for types.output- The object to use as output.- Throws:
IOException
-