@Extensible public interface ClassLoaderHook<T>
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
postFindClass(String name,
ClassLoaderService classLoaderService,
T t)
This method will only be called if no class was found from the normal loading process.
|
URL |
postFindResource(String name,
ClassLoaderService classLoaderService,
T t)
This method will only be called if no resource was found from the normal loading process.
|
Enumeration<URL> |
postFindResources(String name,
ClassLoaderService classLoaderService,
T t)
This method will only be called if no resources were found from the normal loading process.
|
Class<?> |
preFindClass(String name,
ClassLoaderService classLoaderService,
T t)
invoke this method before load class using biz classLoader or plugin classLoader.
|
URL |
preFindResource(String name,
ClassLoaderService classLoaderService,
T t)
invoke this method before load resource using biz classLoader or plugin classLoader.
|
Enumeration<URL> |
preFindResources(String name,
ClassLoaderService classLoaderService,
T t)
If this method returns null then normal loading process is done.
|
Class<?> preFindClass(String name, ClassLoaderService classLoaderService, T t) throws ClassNotFoundException
name - class nameclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedClassNotFoundException - to terminate the hook and throw an exceptionClass<?> postFindClass(String name, ClassLoaderService classLoaderService, T t) throws ClassNotFoundException
name - class nameclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedClassNotFoundException - to terminate the hook and throw an exceptionURL preFindResource(String name, ClassLoaderService classLoaderService, T t)
name - resource nameclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedURL postFindResource(String name, ClassLoaderService classLoaderService, T t)
name - resource nameclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedEnumeration<URL> preFindResources(String name, ClassLoaderService classLoaderService, T t) throws IOException
FileNotFoundException then the loading process is terminatedname - the name of the resource to findclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedIOException - throw an exception when error occurs.Enumeration<URL> postFindResources(String name, ClassLoaderService classLoaderService, T t) throws IOException
name - the name of the resource to findclassLoaderService - ClassLoaderServicet - plugin or biz instance where this hook is invokedIOException - throw an exception when error occurs.Copyright © 2024. All rights reserved.