Is there any technique in Java to check if annotation processing or usual runtime (or some other kind of processing) is taking place?
For example something like this:
if(Processing.isAnnotationProcessing()) {
...
}
Or something like ...
if(Processing.getProcessingContext() == ProcessingContext.ANNOTATION_PROCESSING) {
...
}
So I am looking for a possibility to check this anywhere in the code. Any ideas?