Package org.craftercms.deployer.impl
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 TypeMethodDescriptiongetHooks(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration, org.springframework.context.ApplicationContext applicationContext, String lifecycleHooksPropertyName) Resolved aTargetLifecycleHookbased 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 aTargetLifecycleHookbased on the specified configuration- Parameters:
configuration- the target's YAML configurationapplicationContext- the target's application contextlifecycleHooksPropertyName- 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 occursDeployerException- if a general error occurs
-