@Override public void onAfterShutdown(Object obj) { if (container instanceof NettyRestHandlerContainer) { NettyRestHandlerContainer restHandlerContainer = ((NettyRestHandlerContainer) container); ApplicationHandler applicationHandler = restHandlerContainer.getApplicationHandler(); ContainerLifecycleListener lifecycleListener = ConfigHelper.getContainerLifecycleListener(applicationHandler); lifecycleListener.onShutdown(container); } }
@Override public void onAfterStart(Object obj) { if (container instanceof NettyRestHandlerContainer) { NettyRestHandlerContainer restHandlerContainer = ((NettyRestHandlerContainer) container); ApplicationHandler applicationHandler = restHandlerContainer.getApplicationHandler(); ContainerLifecycleListener lifecycleListener = ConfigHelper.getContainerLifecycleListener(applicationHandler); lifecycleListener.onStartup(container); } }