Package io.github.connellite.jcl
Class AbstractClassLoader.OsgiBootLoader
- java.lang.Object
-
- io.github.connellite.jcl.ProxyClassLoader
-
- io.github.connellite.jcl.AbstractClassLoader.OsgiBootLoader
-
- All Implemented Interfaces:
Comparable<ProxyClassLoader>
- Enclosing class:
- AbstractClassLoader
public final class AbstractClassLoader.OsgiBootLoader extends ProxyClassLoader
Osgi boot loader
-
-
Field Summary
-
Fields inherited from class io.github.connellite.jcl.ProxyClassLoader
enabled, order
-
-
Constructor Summary
Constructors Constructor Description OsgiBootLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLfindResource(String name)Finds the resource URL in this delegate loader.String[]getBootDelagation()booleanisStrictLoading()Class<?>loadClass(String className, boolean resolveIt)Loads the class from this delegate loader.InputStreamloadResource(String name)Loads the resource from this delegate loader.voidsetBootDelagation(String[] bootDelagation)voidsetStrictLoading(boolean strictLoading)-
Methods inherited from class io.github.connellite.jcl.ProxyClassLoader
compareTo, getOrder, isEnabled, setEnabled, setOrder
-
-
-
-
Method Detail
-
loadClass
public Class<?> loadClass(String className, boolean resolveIt)
Description copied from class:ProxyClassLoaderLoads the class from this delegate loader.- Specified by:
loadClassin classProxyClassLoader- Parameters:
className- binary name of the class to loadresolveIt- whether to resolve the class if found- Returns:
- the loaded class, or
nullif not found in this delegate
-
loadResource
public InputStream loadResource(String name)
Description copied from class:ProxyClassLoaderLoads the resource from this delegate loader.- Specified by:
loadResourcein classProxyClassLoader- Parameters:
name- resource name- Returns:
- resource stream, or
nullif not found
-
findResource
public URL findResource(String name)
Description copied from class:ProxyClassLoaderFinds the resource URL in this delegate loader.- Specified by:
findResourcein classProxyClassLoader- Parameters:
name- resource name- Returns:
- resource URL, or
nullif not found
-
isStrictLoading
public boolean isStrictLoading()
-
setStrictLoading
public void setStrictLoading(boolean strictLoading)
-
getBootDelagation
public String[] getBootDelagation()
-
setBootDelagation
public void setBootDelagation(String[] bootDelagation)
-
-