Class ShutdownApplicationListener

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStoppedEvent>

    @Component
    public class ShutdownApplicationListener
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStoppedEvent>
    • Constructor Detail

      • ShutdownApplicationListener

        @Autowired
        public ShutdownApplicationListener​(AuditService auditService)
    • Method Detail

      • onApplicationEvent

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