Search in sources :

Example 1 with PidMode

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();
}
Also used : Configuration(org.talend.esb.mep.requestcallback.feature.Configuration) PidMode(org.talend.esb.mep.requestcallback.feature.Configuration.PidMode)

Aggregations

Configuration (org.talend.esb.mep.requestcallback.feature.Configuration)1 PidMode (org.talend.esb.mep.requestcallback.feature.Configuration.PidMode)1