|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassLoaderDelegateHook
A ClassLoaderDelegateHook hooks into the ClassLoaderDelegate
.
ClassLoaderDelegate
,
HookRegistry.getClassLoaderDelegateHooks()
,
HookRegistry.addClassLoaderDelegateHook(ClassLoaderDelegateHook)
Method Summary | |
---|---|
java.lang.Class |
postFindClass(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate.findClass(String) method after delegating to the resolved constraints and
local bundle for a class load. |
java.lang.String |
postFindLibrary(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate after normal delegation. |
java.net.URL |
postFindResource(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate after delegating to the resolved constraints and
local bundle for a resource load. |
java.util.Enumeration |
postFindResources(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate after delegating to the resolved constraints and
local bundle for a resource load. |
java.lang.Class |
preFindClass(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate.findClass(String) method before delegating to the resolved constraints and
local bundle for a class load. |
java.lang.String |
preFindLibrary(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate before normal delegation. |
java.net.URL |
preFindResource(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a #findResource(String) before delegating to the resolved constraints and
local bundle for a resource load. |
java.util.Enumeration |
preFindResources(java.lang.String name,
BundleClassLoader classLoader,
BundleData data)
Called by a ClassLoaderDelegate before delegating to the resolved constraints and
local bundle for a resource load. |
Method Detail |
---|
java.lang.Class preFindClass(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.lang.ClassNotFoundException
ClassLoaderDelegate.findClass(String)
method before delegating to the resolved constraints and
local bundle for a class load. If this method returns null then normal delegation is done. If this method
returns a non-null value then the rest of the delegation process is skipped and the returned value is used.
If this method throws a ClassNotFoundException
then the calling
ClassLoaderDelegate.findClass(String)
method re-throws the exception.
name
- the name of the class to findclassLoader
- the bundle class loaderdata
- the bundle data
java.lang.ClassNotFoundException
- to terminate the delegation and throw an exceptionjava.lang.Class postFindClass(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.lang.ClassNotFoundException
ClassLoaderDelegate.findClass(String)
method after delegating to the resolved constraints and
local bundle for a class load. This method will only be called if no class was found
from the normal delegation.
name
- the name of the class to findclassLoader
- the bundle class loaderdata
- the bundle data
java.lang.ClassNotFoundException
- to terminate the delegation and throw an exceptionjava.net.URL preFindResource(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.io.FileNotFoundException
#findResource(String)
before delegating to the resolved constraints and
local bundle for a resource load. If this method returns null then normal delegation is done.
If this method returns a non-null value then the rest of the delegation process is skipped and the returned value is used.
If this method throws an FileNotFoundException
then the delegation is terminated.
name
- the name of the resource to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegationjava.net.URL postFindResource(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.io.FileNotFoundException
ClassLoaderDelegate
after delegating to the resolved constraints and
local bundle for a resource load. This method will only be called if no resource was found
from the normal delegation.
name
- the name of the resource to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegationjava.util.Enumeration preFindResources(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.io.FileNotFoundException
ClassLoaderDelegate
before delegating to the resolved constraints and
local bundle for a resource load. If this method returns null then normal delegation is done.
If this method returns a non-null value then the rest of the delegation process is skipped and the returned value is used.
If this method throws an FileNotFoundException
then the delegation is terminated
name
- the name of the resource to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegationjava.util.Enumeration postFindResources(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.io.FileNotFoundException
ClassLoaderDelegate
after delegating to the resolved constraints and
local bundle for a resource load. This method will only be called if no resources were found
from the normal delegation.
name
- the name of the resource to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegationjava.lang.String preFindLibrary(java.lang.String name, BundleClassLoader classLoader, BundleData data) throws java.io.FileNotFoundException
ClassLoaderDelegate
before normal delegation. If this method returns
a non-null value then the rest of the delegation process is skipped and the returned value
is used.
name
- the name of the library to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegationjava.lang.String postFindLibrary(java.lang.String name, BundleClassLoader classLoader, BundleData data)
ClassLoaderDelegate
after normal delegation. This method will only be called
if no library was found from the normal delegation.
name
- the name of the library to findclassLoader
- the bundle class loaderdata
- the bundle data
java.io.FileNotFoundException
- to terminate the delegation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |