public void inherit(PillarSelectorConfig inheritedConfig) { super.inherit(inheritedConfig); if (entitySelectorConfig == null) { entitySelectorConfig = inheritedConfig.getEntitySelectorConfig(); } else if (inheritedConfig.getEntitySelectorConfig() != null) { entitySelectorConfig.inherit(inheritedConfig.getEntitySelectorConfig()); } // variableNameList = ConfigUtils.inheritMergeableListProperty(variableNameList, // inheritedConfig.getVariableNameList()); }
public void inherit(ValueSelectorConfig inheritedConfig) { super.inherit(inheritedConfig); if (variableName == null) { variableName = inheritedConfig.getVariableName(); } cacheType = ConfigUtils.inheritOverwritableProperty(cacheType, inheritedConfig.getCacheType()); selectionOrder = ConfigUtils.inheritOverwritableProperty( selectionOrder, inheritedConfig.getSelectionOrder()); probabilityWeightFactoryClass = ConfigUtils.inheritOverwritableProperty( probabilityWeightFactoryClass, inheritedConfig.getProbabilityWeightFactoryClass()); }