Package org.pkl.config.java.mapper
Class ClassRegistry
- java.lang.Object
-
- org.pkl.config.java.mapper.ClassRegistry
-
public class ClassRegistry extends java.lang.ObjectDescribes mappings of Pkl class names to their corresponding Java classes.This is used by
ValueMapperto pick the correct Java class when mapping Pkl into Java.Mappings are determined by scanning the
/META-INF/org/pkl/config/java/mapper/classesdirectory for properties files.Property files should be in the form of
org.pkl.config.java.mapper.[PKL_CLASS_NAME]=[JAVA_REFLECTION_CLASS_NAME]Mappings are optional, and only required if Pkl types are polymorphic.
They are generated by the Java and Kotlin code generators, and can be handwritten if not using codegen.