Class ConfigPropertyImportProcessor
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.impex.impl.ConfigPropertyImportProcessor
-
- All Implemented Interfaces:
ImportProcessor
public class ConfigPropertyImportProcessor extends java.lang.Object implements 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 Constructor Description ConfigPropertyImportProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDefinition(ImpExReader reader, java.lang.reflect.Method addDefinitionMethod, java.lang.String key, java.lang.String value)
protected java.lang.reflect.Method
findAddDefinitionMethod()
void
init(ImpExImportReader reader)
Item
processItemData(ValueLine valueLine)
-
-
-
Method Detail
-
init
public void init(ImpExImportReader reader)
- Specified by:
init
in interfaceImportProcessor
-
processItemData
public Item processItemData(ValueLine valueLine) throws ImpExException
- Specified by:
processItemData
in interfaceImportProcessor
- Throws:
ImpExException
-
findAddDefinitionMethod
protected java.lang.reflect.Method findAddDefinitionMethod()
-
addDefinition
protected void addDefinition(ImpExReader reader, java.lang.reflect.Method addDefinitionMethod, java.lang.String key, java.lang.String value)
-
-