com.microsoft.bingads.internal.ServiceFactoryFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft.bingads Show documentation
Show all versions of microsoft.bingads Show documentation
The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.
package com.microsoft.bingads.internal;
import com.microsoft.bingads.internal.functionalinterfaces.Supplier;
public class ServiceFactoryFactory {
private static Supplier customServiceFactorySupplier;
public static Supplier getCustomServiceFactorySupplier() {
return customServiceFactorySupplier;
}
public static void setCustomServiceFactorySupplier(Supplier value) {
customServiceFactorySupplier = value;
}
public static ServiceFactory createServiceFactory() {
return customServiceFactorySupplier == null ? new ServiceFactoryImpl() : customServiceFactorySupplier.get();
}
}