Interface TypeLoader

  • All Known Subinterfaces:
    RegularTypeLoader
    All Known Implementing Classes:
    MappingTypeLoader, SimpleTypeLoader, TypeLoaderImpl

    public interface TypeLoader
    Class factory. Used by bound codecs.

    An implementation is responsible for handling both user-defined and "pre-existent" types. Delegate to TypeLoaderImpl.DEFAULT_INSTANCE handling of types you don't know about.

    • Method Detail

      • load

        java.lang.Class<?> load​(ClassDescriptor cd)
                         throws java.lang.ClassNotFoundException
        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