Package org.craftercms.deployer.impl
Class TargetLifecycleHooksResolverImpl
- java.lang.Object
-
- org.craftercms.deployer.impl.TargetLifecycleHooksResolverImpl
-
- All Implemented Interfaces:
TargetLifecycleHooksResolver
@Component("targetLifecycleHooksResolver") public class TargetLifecycleHooksResolverImpl extends Object implements TargetLifecycleHooksResolver
Default implementation ofTargetLifecycleHooksResolver
.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description TargetLifecycleHooksResolverImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public 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
Description copied from interface:TargetLifecycleHooksResolver
Resolved aTargetLifecycleHook
based on the specified configuration- Specified by:
getHooks
in interfaceTargetLifecycleHooksResolver
- 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
-
-