use of org.talend.esb.mep.requestcallback.feature.Configuration.PidMode in project tesb-rt-se by Talend.
the class ConfigurationUpdater method resolveConfigIdentifier.
private String resolveConfigIdentifier() {
if (configuration.getAlternateConfigurationIdentifier() == null) {
return configuration.getConfigurationIdentifier();
}
final Configuration baseConfig = ConfigurationInitializer.resolveConfiguration(null);
String key = configuration.getConfigurationName().toString() + ".pidMode";
PidMode pidMode = baseConfig.getPidModeProperty(key);
if (pidMode == null) {
pidMode = baseConfig.getPidModeProperty("default.pidMode");
}
if (pidMode == PidMode.FULL_NAME) {
return configuration.getConfigurationIdentifier();
}
return configuration.getAlternateConfigurationIdentifier();
}
Aggregations