Package ch.squaredesk.nova.comm.rest
Class RestServerStarter
- java.lang.Object
-
- ch.squaredesk.nova.comm.rest.RestServerStarter
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class RestServerStarter extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
-
Constructor Summary
Constructors Constructor Description RestServerStarter(boolean autoStartServerWhenApplicationContextRefreshed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidshutdown()voidstart()
-
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
start
public void start() throws IOException- Throws:
IOException
-
shutdown
@PreDestroy public void shutdown()
-
-