Class ReachabilityMetadata
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.processor.internal.ReachabilityMetadata
-
@NullMarked public final class ReachabilityMetadata extends java.lang.ObjectProvides support for thereachability-metadata.jsonfile format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReachabilityMetadata.FieldSpecifies a field that needs to be accessed through reflection.static classReachabilityMetadata.MethodSpecifies a method that needs to be accessed through reflection.private static classReachabilityMetadata.MinimalJsonWriterstatic classReachabilityMetadata.ReflectionCollection of reflection metadata.static classReachabilityMetadata.TypeSpecifies a Java type that needs to be accessed through reflection.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIELD_OR_METHOD_NAMEKey used to specify the name of a field or methodstatic java.lang.StringFIELDSKey used to specify the list of fields available for reflection.static java.lang.StringMETHODSKey used to specify the list of methods available for reflection.static java.lang.StringPARAMETER_TYPESKey used to list the method parameter types.static java.lang.StringTYPE_NAMEKey used to specify the name of a type.
-
Constructor Summary
Constructors Modifier Constructor Description privateReachabilityMetadata()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteReflectConfig(java.util.Collection<ReachabilityMetadata.Type> types, java.io.OutputStream output)Writes the contents of areflect-config.jsonfile.
-
-
-
Field Detail
-
FIELD_OR_METHOD_NAME
public static final java.lang.String FIELD_OR_METHOD_NAME
Key used to specify the name of a field or method- See Also:
- Constant Field Values
-
PARAMETER_TYPES
public static final java.lang.String PARAMETER_TYPES
Key used to list the method parameter types.- See Also:
- Constant Field Values
-
TYPE_NAME
public static final java.lang.String TYPE_NAME
Key used to specify the name of a type.Since GraalVM for JDK 23 it will be called "type".
- See Also:
- Constant Field Values
-
FIELDS
public static final java.lang.String FIELDS
Key used to specify the list of fields available for reflection.- See Also:
- Constant Field Values
-
METHODS
public static final java.lang.String METHODS
Key used to specify the list of methods available for reflection.- See Also:
- Constant Field Values
-
-
Method Detail
-
writeReflectConfig
public static void writeReflectConfig(java.util.Collection<ReachabilityMetadata.Type> types, java.io.OutputStream output) throws java.io.IOException
Writes the contents of areflect-config.jsonfile.- Parameters:
types- The reflection metadata for types.output- The object to use as output.- Throws:
java.io.IOException
-
-