Class Application
- java.lang.Object
-
- app.coronawarn.server.services.download.Application
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
@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.download","app.coronawarn.server.common.federation.client"}) @EnableConfigurationProperties public class Application extends Object implements org.springframework.beans.factory.DisposableBean
-
-
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()
static org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
defaultValidator()
Validation factory bean is configured here because its message interpolation mechanism is considered a potential threat if enabled.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)
-
-
-
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
-
killApplication
public static void killApplication(org.springframework.context.ApplicationContext appContext)
Terminates this application with exit code 1 (general error).
-
configurationPropertiesValidator
@Bean public static org.springframework.validation.Validator configurationPropertiesValidator()
-
defaultValidator
@Bean public static org.springframework.validation.beanvalidation.LocalValidatorFactoryBean defaultValidator()
Validation factory bean is configured here because its message interpolation mechanism is considered a potential threat if enabled.
-
-