Package org.pkl.config.java.mapper
Class ClassRegistry
java.lang.Object
org.pkl.config.java.mapper.ClassRegistry
Describes mappings of Pkl class names to their corresponding Java classes.
This is used by ValueMapper to pick the correct Java class when mapping Pkl into Java.
Mappings are determined by scanning the
/META-INF/org/pkl/config/java/mapper/classes directory 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.
-
Method Summary