public class OnClassLoadUnloadListener extends Object implements ClassListener
| Constructor and Description |
|---|
OnClassLoadUnloadListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMethodInvoke(Method[] methods,
Class<? extends Annotation> annotationClass)
Actually invokes method where given annotation class is present.
|
void |
postLoad(Class<?>[] classes)
This method is invoked after classes were loaded.
|
void |
preUnload(Class<?>[] classes)
This method is invoked before class unloading.
|
public void postLoad(Class<?>[] classes)
ClassListenerpostLoad in interface ClassListenerclasses - all loaded classes by script contextpublic void preUnload(Class<?>[] classes)
ClassListenerpreUnload in interface ClassListenerclasses - all loaded classes (they are going to be unloaded) by script
contextprotected final void doMethodInvoke(Method[] methods, Class<? extends Annotation> annotationClass)
methods - Methods to scan for annotationsannotationClass - class of annotation to search forCopyright © 2014–2015. All rights reserved.