Class 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 of ApplicationRunner instances. An unrecoverable failure in either one of them is terminating the chain execution.
    • Constructor Detail

      • Application

        public Application()
    • 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 interface org.springframework.beans.factory.DisposableBean
      • 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 interface org.springframework.context.EnvironmentAware