public class WebContainer extends Object implements CloseableComponent, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStartedEvent>
| Constructor and Description |
|---|
WebContainer(int port) |
WebContainer(String applicationName) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort() |
void |
onApplicationEvent(org.springframework.context.event.ContextStartedEvent contextStartedEvent) |
void |
registerController(BaseController controller) |
void |
terminate() |
public WebContainer(int port)
public WebContainer(String applicationName)
public void onApplicationEvent(org.springframework.context.event.ContextStartedEvent contextStartedEvent)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextStartedEvent>public void terminate()
terminate in interface CloseableComponentpublic void registerController(BaseController controller)
public int getPort()
Copyright © 2015. All rights reserved.