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.WebMvcConfigurer
Launcher class and Spring configuration entry point.
Author:
avasquez
  • Field Details

  • Constructor Details

    • DeployerApplication

      public DeployerApplication()
  • Method Details

    • 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:
      IOException
      freemarker.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:
      configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • gitAuthenticationConfiguratorFactory

      @Bean public org.craftercms.commons.git.utils.AuthConfiguratorFactory gitAuthenticationConfiguratorFactory(@Value("${deployer.main.security.ssh.config}") File sshConfig)