Class SimpleTypeLoader

  • All Implemented Interfaces:
    TypeLoader

    public class SimpleTypeLoader
    extends java.lang.Object
    implements TypeLoader
    A simple implementation of the TypeLoader interface, which maps class names to pre-existing classes.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleTypeLoader​(java.lang.Object... params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> load​(ClassDescriptor cd)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleTypeLoader

        public SimpleTypeLoader​(java.lang.Object... params)
    • Method Detail

      • load

        public java.lang.Class<?> load​(ClassDescriptor cd)
                                throws java.lang.ClassNotFoundException
        Specified by:
        load in interface TypeLoader
        Returns:
        Class for type specified by given descriptor (never null). Implementation of this function must return the same class for identical class descriptors (i.e. must be "pure function").
        Throws:
        java.lang.ClassNotFoundException