|
||||||||||
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(java.lang.String name,
java.lang.Class clazz,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) after
searching the local classloader for a class. |
void |
postFindLocalResource(java.lang.String name,
java.net.URL resource,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. |
void |
preFindLocalClass(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) before
searching the local classloader for a class. |
void |
preFindLocalResource(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. |
void |
recordClassDefine(java.lang.String name,
java.lang.Class clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
Gets called by a classpath manager after a successfully defining a class. |
Method Detail |
---|
void preFindLocalClass(java.lang.String name, ClasspathManager manager) throws java.lang.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
java.lang.ClassNotFoundException
- to prevent the requested class from loadingvoid postFindLocalClass(java.lang.String name, java.lang.Class clazz, ClasspathManager manager) throws java.lang.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
java.lang.ClassNotFoundException
void preFindLocalResource(java.lang.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 resourcevoid postFindLocalResource(java.lang.String name, java.net.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 resourcevoid recordClassDefine(java.lang.String name, java.lang.Class clazz, byte[] classbytes, ClasspathEntry classpathEntry, BundleEntry entry, ClasspathManager manager)
name
- the name of the class that got definedclazz
- the class object that got definedclassbytes
- 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 |