@Override public OAuthAppSettings produce(CreationalContext<OAuthAppSettings> ctx) { builder.name(getQualifierToService().get(qual)); OAuthAppSettings newSettings = builder.build(); ctx.push(newSettings); return newSettings; }
@Override public OAuthAppSettings produce(CreationalContext<OAuthAppSettings> ctx) { OAuthAppSettings settings = oldProducer.produce(ctx); OAuthAppSettings newSettings = new SimpleOAuthAppSettingsBuilder().readFromSettings(settings). qualifier(qual). name(AgoravaContext.getQualifierToService().get(qual)).build(); ctx.push(newSettings); return newSettings; }
@Override public OAuthAppSettingsBuilder readFromSettings(OAuthAppSettings settings) { apiKey(settings.getApiKey()). apiSecret(settings.getApiSecret()). callback(settings.getCallback()). scope(settings.getScope()). qualifier(settings.getQualifier()).name(settings.getSocialMediaName()); return this; }