Class RemovePropertyUpgradeOperation
java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
org.craftercms.deployer.impl.upgrade.operations.AbstractTargetUpgradeOperation
org.craftercms.deployer.impl.upgrade.operations.ConditionalEnvUpgradeOperation
org.craftercms.deployer.impl.upgrade.operations.RemovePropertyUpgradeOperation
- All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<Target>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Implementation of
ConditionalEnvUpgradeOperation
that removes a property from the target's configuration- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
Fields inherited from class org.craftercms.deployer.impl.upgrade.operations.ConditionalEnvUpgradeOperation
CONFIG_KEY_ENV_PATTERN, envPattern
Fields inherited from class org.craftercms.deployer.impl.upgrade.operations.AbstractTargetUpgradeOperation
CONFIG_KEY_ADD, CONFIG_KEY_DEPLOYMENT, CONFIG_KEY_EXPRESSION, CONFIG_KEY_HOOK_NAME, CONFIG_KEY_LIFECYCLE_HOOKS, CONFIG_KEY_PATTERN, CONFIG_KEY_PIPELINE, CONFIG_KEY_PROCESSOR, CONFIG_KEY_PROCESSOR_NAME, CONFIG_KEY_PROPERTY, CONFIG_KEY_REMOVE, CONFIG_KEY_REPLACE, CONFIG_KEY_TARGET, CONFIG_KEY_VALUE, CONFIG_KEY_VALUES, yaml
Fields inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation
applicationContext, currentVersion, enabled, logger, nextVersion
-
Constructor Summary
-
Method Summary
Methods inherited from class org.craftercms.deployer.impl.upgrade.operations.ConditionalEnvUpgradeOperation
doExecute, init
Methods inherited from class org.craftercms.deployer.impl.upgrade.operations.AbstractTargetUpgradeOperation
doExecute, getPipeline
Methods inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation
execute, loadResource, setApplicationContext, setEnabled
-
Field Details
-
CONFIG_KEY_PROPERTY_NAME
- See Also:
-
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 classorg.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<Target>
- Throws:
org.craftercms.commons.config.ConfigurationException
-
doExecuteInternal
- Specified by:
doExecuteInternal
in classConditionalEnvUpgradeOperation
-