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

dev.galasa.framework.internal.runner.BundleManager Maven / Gradle / Ivy

There is a newer version: 0.37.0
Show newest version
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.framework.internal.runner;

import org.apache.felix.bundlerepository.RepositoryAdmin;
import org.osgi.framework.BundleContext;

import dev.galasa.framework.BundleManagement;
import dev.galasa.framework.IBundleManager;
import dev.galasa.framework.spi.FrameworkException;

public class BundleManager implements IBundleManager {

    @Override
    public boolean isBundleActive(BundleContext bundleContext, String bundleSymbolicName) {
        return BundleManagement.isBundleActive(bundleContext, bundleSymbolicName);
    }

    @Override
    public void loadAllGherkinManagerBundles(RepositoryAdmin repositoryAdmin, BundleContext bundleContext)
            throws FrameworkException {
        BundleManagement.loadAllGherkinManagerBundles(repositoryAdmin, bundleContext);
    }

    @Override
    public void loadBundle(RepositoryAdmin repositoryAdmin, BundleContext bundleContext, String bundleSymbolicName)
            throws FrameworkException {
        BundleManagement.loadBundle(repositoryAdmin, bundleContext, bundleSymbolicName);
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy