Class ShutdownHandler
- java.lang.Object
-
- ch.sahits.game.openpatrician.server.events.ShutdownHandler
-
@Service public class ShutdownHandler extends java.lang.Object
- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 08, 2014
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private org.springframework.context.ApplicationContext
context
-
Constructor Summary
Constructors Constructor Description ShutdownHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
initializeEventBus()
void
shutdown(GameStateChange event)
private void
unregister()
-
-
-
Method Detail
-
initializeEventBus
@PostConstruct private void initializeEventBus()
-
unregister
@PreDestroy private void unregister()
-
shutdown
public void shutdown(GameStateChange event)
-
-