Package org.craftercms.deployer
Class DeployerApplication
- java.lang.Object
-
- org.craftercms.deployer.DeployerApplication
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@SpringBootApplication @EnableScheduling @ImportResource("classpath:crafter/core/core-context.xml") public class DeployerApplication extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurerLauncher class and Spring configuration entry point.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static StringCORE_APP_CONTEXT_LOCATION
-
Constructor Summary
Constructors Constructor Description DeployerApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.craftercms.commons.config.EncryptionAwareConfigurationReaderconfigurationReader(org.craftercms.commons.crypto.TextEncryptor textEncryptor)org.craftercms.commons.config.ConfigurationResolverconfigurationResolver(String environment, String basePath, String envPath, org.craftercms.commons.config.EncryptionAwareConfigurationReader configurationReader)voidconfigureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)DeploymentEventsStore<Properties,Path>deploymentEventsStore(String folderPath, String filePattern)ExecutorServicedeploymentTaskExecutor()org.craftercms.commons.git.utils.AuthConfiguratorFactorygitAuthenticationConfiguratorFactory(File sshConfig)static voidmain(String[] args)com.fasterxml.jackson.databind.ObjectMapperobjectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder)ProcessedCommitsStoreprocessedCommitsStore()org.craftercms.commons.config.PublishingTargetResolverpublishingTargetResolver(String stagingNamePattern)org.springframework.web.client.RestTemplaterestTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)com.github.jknack.handlebars.HandlebarstargetConfigTemplateEngine(org.springframework.core.io.ResourceLoader resourceLoader)org.springframework.scheduling.concurrent.ThreadPoolTaskSchedulertaskScheduler()org.craftercms.commons.crypto.TextEncryptortextEncryptor(String key, String salt)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Field Detail
-
CORE_APP_CONTEXT_LOCATION
public static final String CORE_APP_CONTEXT_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
-
processedCommitsStore
@Bean public ProcessedCommitsStore processedCommitsStore()
-
objectMapper
@Bean @Primary public com.fasterxml.jackson.databind.ObjectMapper objectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder)
-
restTemplate
@Bean public org.springframework.web.client.RestTemplate restTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)
-
taskScheduler
@Bean(destroyMethod="shutdown") public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler()
-
deploymentTaskExecutor
@Bean(destroyMethod="shutdownNow") public ExecutorService deploymentTaskExecutor()
-
targetConfigTemplateEngine
@Bean public com.github.jknack.handlebars.Handlebars targetConfigTemplateEngine(org.springframework.core.io.ResourceLoader resourceLoader) throws IOException, freemarker.template.TemplateException- Throws:
IOExceptionfreemarker.template.TemplateException
-
textEncryptor
@Bean("crafter.textEncryptor") public org.craftercms.commons.crypto.TextEncryptor textEncryptor(@Value("${deployer.main.security.encryption.key}") String key, @Value("${deployer.main.security.encryption.salt}") String salt) throws org.craftercms.commons.crypto.CryptoException- Throws:
org.craftercms.commons.crypto.CryptoException
-
configurationReader
@Bean("crafter.configurationReader") public org.craftercms.commons.config.EncryptionAwareConfigurationReader configurationReader(@Autowired org.craftercms.commons.crypto.TextEncryptor textEncryptor)
-
publishingTargetResolver
@Bean("crafter.publishingTargetResolver") public org.craftercms.commons.config.PublishingTargetResolver publishingTargetResolver(@Value("${deployer.main.targets.config.blob.staging.pattern}") String stagingNamePattern)
-
configurationResolver
@Bean("crafter.configurationResolver") public org.craftercms.commons.config.ConfigurationResolver configurationResolver(@Value("${deployer.main.config.environment.active}") String environment, @Value("${deployer.main.config.environment.basePath}") String basePath, @Value("${deployer.main.config.environment.envPath}") String envPath, @Autowired org.craftercms.commons.config.EncryptionAwareConfigurationReader configurationReader)
-
deploymentEventsStore
@Bean public DeploymentEventsStore<Properties,Path> deploymentEventsStore(@Value("${deployer.main.deployments.events.folderPath}") String folderPath, @Value("${deployer.main.deployments.events.filePattern}") String filePattern)
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
- Specified by:
configureContentNegotiationin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
gitAuthenticationConfiguratorFactory
@Bean public org.craftercms.commons.git.utils.AuthConfiguratorFactory gitAuthenticationConfiguratorFactory(@Value("${deployer.main.security.ssh.config}") File sshConfig)
-
-