Package org.omegat

Class MainClassLoader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class MainClassLoader
    extends java.net.URLClassLoader
    • Constructor Summary

      Constructors 
      Constructor Description
      MainClassLoader()  
      MainClassLoader​(java.lang.ClassLoader parent)  
      MainClassLoader​(java.lang.String name, java.lang.ClassLoader parent)
      Java9 compatible class loader constructor.
      MainClassLoader​(java.net.URL[] urls, java.lang.ClassLoader parent)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MainClassLoader findAncestor​(java.lang.ClassLoader cl)  
      • Methods inherited from class java.net.URLClassLoader

        close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
      • Methods inherited from class java.lang.Object

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

      • MainClassLoader

        public MainClassLoader​(java.lang.String name,
                               java.lang.ClassLoader parent)
        Java9 compatible class loader constructor.
        Parameters:
        name - name of class loader
        parent -
      • MainClassLoader

        public MainClassLoader​(java.lang.ClassLoader parent)
      • MainClassLoader

        public MainClassLoader​(java.net.URL[] urls,
                               java.lang.ClassLoader parent)
      • MainClassLoader

        public MainClassLoader()
    • Method Detail

      • findAncestor

        public static MainClassLoader findAncestor​(java.lang.ClassLoader cl)