Class CockpitClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- com.hybris.cockpitng.core.persistence.packaging.CockpitClassLoader
-
- All Implemented Interfaces:
Resettable
- Direct Known Subclasses:
WidgetClassLoader
public abstract class CockpitClassLoader extends java.lang.ClassLoader implements Resettable
A class loader aware of cockpit modules and capable of reading resources of particular module and/or component.
-
-
Constructor Summary
Constructors Constructor Description CockpitClassLoader()CockpitClassLoader(java.lang.ClassLoader parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.io.InputStreamgetResourceAsStream(WidgetJarLibInfo componentInfo, java.lang.String resourceName)Reads a resource related to specified component.-
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, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.core.util.Resettable
reset
-
-
-
-
Method Detail
-
getResourceAsStream
public abstract java.io.InputStream getResourceAsStream(WidgetJarLibInfo componentInfo, java.lang.String resourceName)
Reads a resource related to specified component.- Parameters:
componentInfo- component informationresourceName- relative path to resource- Returns:
- a stream to resource or
nullif resource cannot be found
-
-