All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.bingads.internal.ServiceFactoryFactory Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 13.0.22.1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy