OSGiUtils.java 1.41 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  javax.transaction.TransactionManager
 *  org.osgi.framework.BundleContext
 */
package com.adobe.aemds.bedrock.internal;

import com.adobe.aemds.bedrock.CoreConfigService;
import javax.transaction.TransactionManager;
import org.omg.CORBA.ORB;
import org.osgi.framework.BundleContext;

public class OSGiUtils {
    private static ORB orb;
    private static BundleContext bundleContext;
    private static CoreConfigService coreConfigService;
    private static TransactionManager transactionManager;

    public static BundleContext getBundleContext() {
        return bundleContext;
    }

    public static void setBundleContext(BundleContext bundleContext) {
        OSGiUtils.bundleContext = bundleContext;
    }

    public static ORB getOrb() {
        return orb;
    }

    public static void setOrb(ORB orb) {
        OSGiUtils.orb = orb;
    }

    public static CoreConfigService getCoreConfigService() {
        return coreConfigService;
    }

    public static void setCoreConfigService(CoreConfigService coreConfigService) {
        OSGiUtils.coreConfigService = coreConfigService;
    }

    public static TransactionManager getTransactionManager() {
        return transactionManager;
    }

    public static void setTransactionManager(TransactionManager transactionManager) {
        OSGiUtils.transactionManager = transactionManager;
    }
}