Class CustomClassLoaderConstructor


  • public class CustomClassLoaderConstructor
    extends Constructor
    Construct instances with a custom Class Loader.
    • Constructor Detail

      • CustomClassLoaderConstructor

        public CustomClassLoaderConstructor​(java.lang.ClassLoader loader,
                                            LoaderOptions loadingConfig)
        Create
        Parameters:
        loader - - the class loader to find the class definition
        loadingConfig - - options
      • CustomClassLoaderConstructor

        public CustomClassLoaderConstructor​(java.lang.Class<? extends java.lang.Object> theRoot,
                                            java.lang.ClassLoader theLoader,
                                            LoaderOptions loadingConfig)
        Create
        Parameters:
        loadingConfig - - options
        theRoot - - the class to instantiate
        theLoader - - the class loader to find the class definition
    • Method Detail

      • getClassForName

        protected java.lang.Class<?> getClassForName​(java.lang.String name)
                                              throws java.lang.ClassNotFoundException
        Load the class
        Overrides:
        getClassForName in class Constructor
        Parameters:
        name - - the name
        Returns:
        Class to create
        Throws:
        java.lang.ClassNotFoundException - - when cannot load the class