Class TargetLifecycleHooksResolverImpl

    • Constructor Detail

      • TargetLifecycleHooksResolverImpl

        public TargetLifecycleHooksResolverImpl()
    • 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 a TargetLifecycleHook based on the specified configuration
        Specified by:
        getHooks in interface TargetLifecycleHooksResolver
        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