Hello, dear JRebel team,
is there a possiblity to detect if JRebel is used in the application?
Regards,
Daniel Migowski
PS: I know "good code" does not need to check it, but we have a special case where this might come handy.
Hello, dear JRebel team,
is there a possiblity to detect if JRebel is used in the application?
Regards,
Daniel Migowski
PS: I know "good code" does not need to check it, but we have a special case where this might come handy.
The first idea that comes to mind is going through the system properties, System.getProperty. At first glance I see a substring of "jrebel" in a prop named "java.class.path" and also in "sun.boot.class.path".
Or you could test if any of the jrebel sdk classes are present.
So Class.forName() and use any from http://repos.zeroturnaround.com/svn/jr-root/trunk/jr-sdk/src/org/zeroturnaround/javarebel/ and see if loading is a success.
Thanks to you all, I will go with the last post, because it sounds like the most stable variant.