// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.osgi; import com.yahoo.component.ComponentSpecification; import org.osgi.framework.Bundle; import java.util.Collection; import java.util.List; /** * @author Tony Vaagenes * @author gjoranv */ public interface Osgi { Bundle[] getBundles(); /** Returns all bundles that have not been scheduled for uninstall. */ List getCurrentBundles(); Bundle getBundle(ComponentSpecification bundleId); List install(String absolutePath); /** Sets the collection of bundles to allow duplicates for. */ void allowDuplicateBundles(Collection bundles); default boolean hasFelixFramework() { return false; } }