Class ReachabilityMetadata
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.processor.internal.ReachabilityMetadata
-
@NullMarked public final class ReachabilityMetadata extends Object
Provides 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.static 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 StringFIELD_OR_METHOD_NAMEKey used to specify the name of a field or methodstatic StringFIELDSKey used to specify the list of fields available for reflection.static StringMETHODSKey used to specify the list of methods available for reflection.static StringPARAMETER_TYPESKey used to list the method parameter types.static StringTYPE_NAMEKey used to specify the name of a type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteReflectConfig(Collection<ReachabilityMetadata.Type> types, OutputStream output)Writes the contents of areflect-config.jsonfile.
-
-
-
Field Detail
-
FIELD_OR_METHOD_NAME
public static final 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 String PARAMETER_TYPES
Key used to list the method parameter types.- See Also:
- Constant Field Values
-
TYPE_NAME
public static final 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 String FIELDS
Key used to specify the list of fields available for reflection.- See Also:
- Constant Field Values
-
METHODS
public static final 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(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
-
-