Class ClassRegistry


  • public class ClassRegistry
    extends java.lang.Object
    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

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait