Class BundleUtil.BundleGroupClassLoader
java.lang.Object
java.lang.ClassLoader
com.inductiveautomation.ignition.common.BundleUtil.BundleGroupClassLoader
- Enclosing class:
- BundleUtil
BundleUtil.BundleGroupClassLoader exists so that getResource*() calls can be intercepted and directed to
BundleUtil.getLangPackLoader() and the wrapped ClassLoader before going to the system ClassLoader
if necessary.
Using a BundleUtil.BundleGroupClassLoader for anything other than loading resources will not work the way you want
it to, so don't do it. Nothing but getResource*() calls are delegated, so you'll end up calling the system
ClassLoader for all other calls.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name) getResourceAsStream(String name) getResources(String name) booleanisValid()Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
BundleGroupClassLoader
-
-
Method Details
-
getResource
- Overrides:
getResourcein classClassLoader
-
getResources
- Overrides:
getResourcesin classClassLoader- Throws:
IOException
-
getResourceAsStream
- Overrides:
getResourceAsStreamin classClassLoader
-
isValid
public boolean isValid()- Returns:
trueif thisBundleUtil.BundleGroupClassLoadershould still be used to load resources.
-