Class GrailsApplicationEventListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>

    public class GrailsApplicationEventListener
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
    A ApplicationListener to initialize Grails with Plugins and GrailsApplicationLifeCycles when an ApplicationContext gets refreshed or closed.
    Since:
    3.0
    See Also:
    GrailsApplicationPostProcessor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onApplicationEvent​(org.springframework.context.event.ApplicationContextEvent event)  
      void setApplicationStartup​(org.springframework.core.metrics.ApplicationStartup applicationStartup)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrailsApplicationEventListener

        public GrailsApplicationEventListener()
    • Method Detail

      • setApplicationStartup

        public void setApplicationStartup​(org.springframework.core.metrics.ApplicationStartup applicationStartup)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ApplicationContextEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>