- java.lang.Object
-
- org.jacpfx.vertx.spring.VertxLifecycleAspect
-
public class VertxLifecycleAspect extends Object
This aspect closes the spring context in case the spring verticle is stopped- Author:
- Andy Moncsek
-
-
Field Summary
Fields Modifier and Type Field Description org.springframework.context.ApplicationContextcontext
-
Constructor Summary
Constructors Constructor Description VertxLifecycleAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterStart(org.aspectj.lang.JoinPoint joinPoint)voidafterStop(org.aspectj.lang.JoinPoint joinPoint)When a verticle will be stopped the stop() method will be executed.
-
-
-
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)
-
-