ServiceClientFactoryProviderImpl.java 1.49 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.idp.dsc.clientsdk.ServiceClientFactory
 *  com.adobe.livecycle.dsc.clientsdk.ServiceClientFactoryProvider
 *  org.apache.felix.scr.annotations.Component
 *  org.apache.felix.scr.annotations.Reference
 *  org.apache.felix.scr.annotations.Service
 */
package com.adobe.forms.livecycle.impl;

import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.livecycle.dsc.clientsdk.ServiceClientFactoryProvider;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;

@Component(label="LC Forms ServiceClientFactoryProviderImpl", description="LC Forms ServiceClientFactoryProviderImpl", immediate=1)
@Service(value={ServiceClientFactoryProviderImpl.class})
public class ServiceClientFactoryProviderImpl {
    @Reference
    private ServiceClientFactoryProvider scfProvider;

    public ServiceClientFactory getDefaultServiceClientFactory() {
        ServiceClientFactory scf = this.scfProvider.getDefaultServiceClientFactory();
        return scf;
    }

    protected void bindScfProvider(ServiceClientFactoryProvider serviceClientFactoryProvider) {
        this.scfProvider = serviceClientFactoryProvider;
    }

    protected void unbindScfProvider(ServiceClientFactoryProvider serviceClientFactoryProvider) {
        if (this.scfProvider == serviceClientFactoryProvider) {
            this.scfProvider = null;
        }
    }
}