Grails 5.2.5 which event is triggered during recompilation

69 Views Asked by At

Dear Stackoverflow Gurus, I am working with Grails for one of the projects and find this technology very fun to work with. During development of some logic however I need to wait for a long time for a restarting of application in order to test the change that is implemented. This means that after changing single line of code I need to wait for 5+ minutes (because of multiple plugins that are loaded during startup of application) to verify it. Also because of custom logic of some service in project for shutdown I am not be able to use some tools like JRebel or DCEVM. So I am trying to find some custom solution for fast restart without loading the plugins again. Auto recompilation of project is enabled. I find that one method of service (that has custom logic for shutdown) annotated with @PreDestroy annotation from JSR standard is executed during recompilation but the methods annotated with @PostConstruct never do. Which event is triggered after Grails Recompilation during initialization? I found that neither methods from BootStrap, nor GrailsAutoConfiguration classes are called (like 'init', 'onStartup', 'doWithApplicationContext').

0

There are 0 best solutions below