Class Application
- java.lang.Object
-
- app.coronawarn.server.services.distribution.Application
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.EnvironmentAware
@SpringBootApplication @EnableJdbcRepositories(basePackages="app.coronawarn.server.common.persistence") @EntityScan(basePackages="app.coronawarn.server.common.persistence") @ComponentScan({"app.coronawarn.server.common.persistence","app.coronawarn.server.services.distribution"}) @EnableConfigurationProperties(DistributionServiceConfig.class) public class Application extends Object implements org.springframework.context.EnvironmentAware, org.springframework.beans.factory.DisposableBean
The retrieval, assembly and distribution of configuration and diagnosis key data is handled by a chain ofApplicationRunner
instances. An unrecoverable failure in either one of them is terminating the chain execution.
-
-
Constructor Summary
Constructors Constructor Description Application()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.springframework.validation.Validator
configurationPropertiesValidator()
void
destroy()
Manual shutdown hook needed to avoid Log4j shutdown issues (see cwa-server/#589).static void
killApplication(org.springframework.context.ApplicationContext appContext)
Terminates this application with exit code 1 (general error).static void
main(String[] args)
void
setEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
destroy
public void destroy()
Manual shutdown hook needed to avoid Log4j shutdown issues (see cwa-server/#589).- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
configurationPropertiesValidator
@Bean public static org.springframework.validation.Validator configurationPropertiesValidator()
-
killApplication
public static void killApplication(org.springframework.context.ApplicationContext appContext)
Terminates this application with exit code 1 (general error).
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
-