Class IsolatedConnectorClassLoader

java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.odpi.openmetadata.frameworks.connectors.IsolatedConnectorClassLoader
All Implemented Interfaces:
Closeable, AutoCloseable

public class IsolatedConnectorClassLoader extends URLClassLoader
IsolatedConnectorClassLoader is used by a connector provider to create a connector instance that uses class implementations from its own JAR file rather than any class implementations that may have already been loaded.
  • Constructor Details

    • IsolatedConnectorClassLoader

      public IsolatedConnectorClassLoader(String jarFileName) throws IOException
      Throws:
      IOException
    • IsolatedConnectorClassLoader

      protected IsolatedConnectorClassLoader(String jarFileName, ClassLoader jdkClassLoader, ClassLoader defaultClassLoader) throws IOException
      Creates a new class loader of the specified name and using the specified parent class loader for delegation.
      Parameters:
      jarFileName - name of the jar file to load from
      jdkClassLoader - the parent class loader for JRE classes
      defaultClassLoader - the class loader to use if can not find class in JAR.
      Throws:
      IOException
  • Method Details