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
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 Summary
Constructors -
Method Summary
Methods inherited from class java.net.URLClassLoader
close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class java.lang.ClassLoader
clearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Constructor Details
-
IsolatedConnectorClassLoader
- Throws:
IOException
-
-
Method Details
-
loadClass
This loads classes from the JDK, then the JAR file, then the default class loader.- Overrides:
loadClassin classClassLoader- Parameters:
name- The binary name of the class- Returns:
- loaded class
- Throws:
ClassNotFoundException- not found on the class path
-