Thirteen captured transcripts: a listener is a blocking method call, ordering and chaining, SpEL conditions, generic-event erasure, every transaction phase on commit and rollback, what an AFTER_COMMIT listener can write, which exceptions reach the publisher, async listeners on platform and virtual threads, and the annotations behind Spring Modulith's @ApplicationModuleListener. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
12 lines
408 B
Java
12 lines
408 B
Java
import java.lang.annotation.Annotation;
|
|
|
|
/** Prints the annotations a class carries, as the JVM reports them. Usage: java PrintAnnotations.java <class name> */
|
|
public class PrintAnnotations {
|
|
public static void main(String[] args) throws Exception {
|
|
Class<?> type = Class.forName(args[0]);
|
|
for (Annotation a : type.getAnnotations()) {
|
|
System.out.println(a);
|
|
}
|
|
}
|
|
}
|