Class VertxLifecycleAspect


  • public class VertxLifecycleAspect
    extends Object
    This aspect closes the spring context in case the spring verticle is stopped
    Author:
    Andy Moncsek
    • Field Detail

      • context

        @Autowired
        public org.springframework.context.ApplicationContext context
    • Constructor Detail

      • VertxLifecycleAspect

        public VertxLifecycleAspect()
    • Method Detail

      • afterStop

        public void afterStop​(org.aspectj.lang.JoinPoint joinPoint)
        When a verticle will be stopped the stop() method will be executed. In this case check if there is a running spring context, if so close it.
        Parameters:
        joinPoint - the verticle stop method
      • afterStart

        public void afterStart​(org.aspectj.lang.JoinPoint joinPoint)