Package org.hotswap.agent.annotation
Annotation Type OnClassFileEvent
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface OnClassFileEvent
OnResourceFileEvent for a change on resource file representing a java class. Use with a non static method. Method attribute types:- ClassLoader - the application classloader
- String - classname - the name of the class in the internal form of fully
qualified class and interface names. For example,
"java/util/List". - ClassPool - initialized javassist classpool
- CtClass - javassist CtClass created from target file
- URI - URI of the watched resource
- URL - URL of the watched resource
- Author:
- Jiri Bubnik
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description StringclassNameRegexpRegexp of class name.
-
-
-
Element Detail
-
classNameRegexp
String classNameRegexp
Regexp of class name.
-
-
-
events
FileEvent[] events
Filter watch event types. Default is all events (CREATE, MODIFY, DELETE). Be careful about assumptions on events. Some IDEs create on file compilation sequence of multiple delete/create/modify events.- Default:
- {org.hotswap.agent.annotation.FileEvent.CREATE, org.hotswap.agent.annotation.FileEvent.MODIFY, org.hotswap.agent.annotation.FileEvent.DELETE}
-
-