public interface IClassLoadHelper
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Enable sharing of the class-loader with 3rd party (e.g. digester).
|
default URL |
getResource(String sName)
Finds a resource with a given name.
|
default InputStream |
getResourceAsStream(String sName)
Finds a resource with a given name.
|
default void |
initialize()
Called to give the ClassLoadHelper a chance to initialize itself, including
the opportunity to "steal" the class loader off of the calling thread,
which is the thread that is initializing Quartz.
|
default Class<?> |
loadClass(String sClassName)
Return the class with the given name.
|
default <T> Class<? extends T> |
loadClass(String name,
Class<T> dummy)
Return the class of the given type with the given name.
|
default void initialize()
default Class<?> loadClass(String sClassName) throws ClassNotFoundException
sClassName - the fqcn of the class to load.ClassNotFoundException - if the class can be found in the classpath.default <T> Class<? extends T> loadClass(String name, Class<T> dummy) throws ClassNotFoundException
name - the fqcn of the class to load.dummy - For casting.ClassNotFoundException - if the class can be found in the classpath.@Nullable default URL getResource(String sName)
sName - name of the desired resource@Nullable default InputStream getResourceAsStream(String sName)
sName - name of the desired resource@Nonnull ClassLoader getClassLoader()
Copyright © 2016–2021 Philip Helger. All rights reserved.