Interface TargetLifecycleHooksResolver

All Known Implementing Classes:
TargetLifecycleHooksResolverImpl

public interface TargetLifecycleHooksResolver
Resolver that uses target-specific YAML configuration and Spring configuration to retrieve the TargetLifecycleHooks for a target.
Author:
avasquez
  • Method Summary

    Modifier and Type
    Method
    Description
    getHooks(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration, org.springframework.context.ApplicationContext applicationContext, String lifecycleHooksPropertyName)
    Resolved a TargetLifecycleHook based on the specified configuration
  • Method Details

    • getHooks

      List<TargetLifecycleHook> getHooks(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration, org.springframework.context.ApplicationContext applicationContext, String lifecycleHooksPropertyName) throws org.craftercms.commons.config.ConfigurationException, DeployerException
      Resolved a TargetLifecycleHook based on the specified configuration
      Parameters:
      configuration - the target's YAML configuration
      applicationContext - the target's application context
      lifecycleHooksPropertyName - the name of the hook list property in the YAML configuration
      Returns:
      the lifecycle hooks
      Throws:
      org.craftercms.commons.config.ConfigurationException - if a configuration related exception occurs
      DeployerException - if a general error occurs