public class RestServerStarter extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Constructor and Description |
|---|
RestServerStarter(boolean autoStartServerWhenApplicationContextRefreshed) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
shutdown() |
void |
start() |
public RestServerStarter(boolean autoStartServerWhenApplicationContextRefreshed)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public void start()
throws IOException
IOException@PreDestroy public void shutdown()
Copyright © 2018. All rights reserved.