provide method level annotation and class level annotation. then annotation processor lib will retrieve those annotation's meta data to produce "extensions.xml" in classpath at compile. also provide a class in lib to print this xml out at runtime
an lombok custom annotation handler to produce static method for annotation class at compile time.
the client to use annotations. Use Java Decompiler to check generated "SingletonExample.class"