Class ConfigPropertyImportProcessor
java.lang.Object
de.hybris.platform.ruleengineservices.impex.impl.ConfigPropertyImportProcessor
- All Implemented Interfaces:
ImportProcessor
Impex ImportProcessor that injects all config properties as impex definitions.
All defined configuration properties are added as impex macro definitions with
the prefix of "config-". For example the config key mail.smtp.server
can be accessed via the macro $config-mail.smtp.server.
In order to use this import processor and to load the configuration properties
the following must be added to the top of the impex file:
UPDATE GenericItem[processor=de.hybris.platform.ruleengineservices.impex.impl.ConfigPropertyImportProcessor];pk[unique=true]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefinition(ImpExReader reader, Method addDefinitionMethod, String key, String value) protected Methodvoidinit(ImpExImportReader reader) processItemData(ValueLine valueLine)
-
Constructor Details
-
ConfigPropertyImportProcessor
public ConfigPropertyImportProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceImportProcessor
-
processItemData
- Specified by:
processItemDatain interfaceImportProcessor- Throws:
ImpExException
-
findAddDefinitionMethod
-
addDefinition
protected void addDefinition(ImpExReader reader, Method addDefinitionMethod, String key, String value)
-