@Configuration public class XApplication extends Object
ServerConfig bean which holds the project-x runtime state at the very top
levelServerConfig| Constructor and Description |
|---|
XApplication() |
| Modifier and Type | Method and Description |
|---|---|
ServerConfig |
serverConfig()
Gives the main runtime configuration bean of the project-x container.
|
TimerMetricsReportHandler |
timerMetricsReportHandler()
A handler bean that is used to register
XTimerMetricsReporter instances
into the spring container and to the server configuration |
@Bean @Scope(value="singleton") public ServerConfig serverConfig()
Server configuration can be treated as the heart of project-x
@Bean @Scope(value="singleton") public TimerMetricsReportHandler timerMetricsReportHandler()
XTimerMetricsReporter instances
into the spring container and to the server configurationCopyright © 2016–2019 AdroitLogic. All rights reserved.