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 theTargetLifecycleHook
s for a target.- Author:
- avasquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<TargetLifecycleHook>
getHooks(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration, org.springframework.context.ApplicationContext applicationContext, String lifecycleHooksPropertyName)
Resolved aTargetLifecycleHook
based on the specified configuration
-
-
-
Method Detail
-
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 aTargetLifecycleHook
based 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
-
-