Class RemovePropertyUpgradeOperation

java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<Target>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class RemovePropertyUpgradeOperation extends ConditionalEnvUpgradeOperation
Implementation of ConditionalEnvUpgradeOperation that removes a property from the target's configuration
Since:
4.0.0
Author:
joseross
  • Field Details

    • CONFIG_KEY_PROPERTY_NAME

      public static final String CONFIG_KEY_PROPERTY_NAME
      See Also:
    • propertyName

      protected String propertyName
      The name of the property
  • Constructor Details

    • RemovePropertyUpgradeOperation

      public RemovePropertyUpgradeOperation()
  • Method Details

    • doInit

      protected void doInit(org.apache.commons.configuration2.HierarchicalConfiguration<?> config) throws org.craftercms.commons.config.ConfigurationException
      Overrides:
      doInit in class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
      Throws:
      org.craftercms.commons.config.ConfigurationException
    • doExecuteInternal

      protected void doExecuteInternal(Target target, Map<String,Object> targetConfig)
      Specified by:
      doExecuteInternal in class ConditionalEnvUpgradeOperation