title: (Java) Create new REST web services dynamically during runtime
body: <p>I am experimenting stuffs with web services, and I am thinking to create new web services during runtime. My idea is by creating new Java file with appropriate JAX-RS annotation, and making it executable as new web service available for my web app.</p>
  
  <p>For example, I have localhost:8080/services as initial web service, upon executing some command, the new java file will be created with localhost:8080/services/time as the new path for a new web service. Is this possible?</p>
  
  <p>Creating new java file is no problem, it even resides in the correct path. but is there any way to force the newly created java file to be compiled and working appropriately? or maybe, lets say if i deploy it in heroku, can i force it to redeploy with that new addition?</p>