Package com.denodo.configuration
Class PropertiesExtractor
java.lang.Object
com.denodo.configuration.AbstractConfigurationProcessor
com.denodo.configuration.PropertiesExtractor
- All Implemented Interfaces:
ConfigurationProcessor
This
ConfigurationProcessor implementation extracts properties from the processed
Configuration's environment-dependent properties (which are defined in the corresponding
MetaConfiguration. The extracted properties' values are replaced by
references to variables in the processed Configuration object.-
Field Summary
FieldsFields inherited from interface com.denodo.configuration.ConfigurationProcessor
defaultMetadataManager -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesExtractor(String projectName, String mainType, String mainSubType, String mainName, Properties extractedProperties) -
Method Summary
Modifier and TypeMethodDescriptiongenerateKey(Set<Object> currentKeys, String type, String subtype, String name, String parameterName) Generates a unique key for a extracted property.voidprocessParameter(MetaParameter metaParam, Parameter<Object> parameter, boolean legacy) Methods inherited from class com.denodo.configuration.AbstractConfigurationProcessor
processConfiguration, processConfiguration, processConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.denodo.configuration.ConfigurationProcessor
processConfiguration, processConfiguration, processConfiguration
-
Field Details
-
ENCRYPTED_PROPERTY_SUFFIX
- See Also:
-
-
Constructor Details
-
PropertiesExtractor
public PropertiesExtractor(String projectName, String mainType, String mainSubType, String mainName, Properties extractedProperties)
-
-
Method Details
-
generateKey
public String generateKey(Set<Object> currentKeys, String type, String subtype, String name, String parameterName) Generates a unique key for a extracted property. Keys follow this format:projectName.elementType.elementSubType.elementName.propertyName[<index>]. For instance:MyProject.Job.VDP.SomeJob.mailAddress1(a key like this one would be generated for a VDP job with several Mail handlers, hence the suffix in the property name). -
getKey
-
processParameter
-