|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassLoadingStatsHook
A ClassLoadingStatsHook hooks into the ClasspathManager class. This class allows
a hook to record statistics about classloading.
ClasspathManager,
HookRegistry.getClassLoadingStatsHooks(),
HookRegistry.addClassLoadingStatsHook(ClassLoadingStatsHook)| Method Summary | |
|---|---|
void |
postFindLocalClass(String name,
Class<?> clazz,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) after
searching the local classloader for a class. |
void |
postFindLocalResource(String name,
URL resource,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. |
void |
preFindLocalClass(String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) before
searching the local classloader for a class. |
void |
preFindLocalResource(String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. |
void |
recordClassDefine(String name,
Class<?> clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
Gets called by a classpath manager after an attempt is made to define a class. |
| Method Detail |
|---|
void preFindLocalClass(String name,
ClasspathManager manager)
throws ClassNotFoundException
ClasspathManager.findLocalClass(String) before
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
name - the name of the requested classmanager - the classpath manager used to find and load the requested class
ClassNotFoundException - to prevent the requested class from loading
void postFindLocalClass(String name,
Class<?> clazz,
ClasspathManager manager)
throws ClassNotFoundException
ClasspathManager.findLocalClass(String) after
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
name - the name of the requested classclazz - the loaded class or null if not foundmanager - the classpath manager used to find and load the requested class
ClassNotFoundException
void preFindLocalResource(String name,
ClasspathManager manager)
ClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
name - the name of the requested resourcemanager - the classpath manager used to find the requested resource
void postFindLocalResource(String name,
URL resource,
ClasspathManager manager)
ClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
name - the name of the requested resourceresource - the URL to the requested resource or null if not foundmanager - the classpath manager used to find the requested resource
void recordClassDefine(String name,
Class<?> clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
name - the name of the class that got definedclazz - the class object that got defined or null if an error occurred while defining a classclassbytes - the class bytes used to define the classclasspathEntry - the ClasspathEntry where the class bytes got read fromentry - the BundleEntyr source of the class bytesmanager - the classpath manager used to define the class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||