I developing the servlet that should work 24/7. And I want to create some extensions mechanism: placing new jar in classpath must be detected by the main servlet and some class should loaded (without appserver restart).
Purpose: main servlet recieves events and redirect data to process to loaded classes (extensions). Extensions implements some interface (e.g. IMyExtension
).
Maybe there is way to find all classes that implements particular interface? Or what do you suggest?