
com.yahoo.osgi.OsgiImpl Maven / Gradle / Ivy
// Copyright 2017 Yahoo Holdings. 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 com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.jdisc.application.OsgiFramework;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleException;
import org.osgi.framework.ServiceReference;
import java.util.List;
import java.util.logging.Logger;
/**
* @author Tony Vaagenes
*/
public class OsgiImpl implements Osgi {
private static final Logger log = Logger.getLogger(OsgiImpl.class.getName());
private final OsgiFramework jdiscOsgi;
public OsgiImpl(OsgiFramework jdiscOsgi) {
this.jdiscOsgi = jdiscOsgi;
}
@Override
public Bundle[] getBundles() {
List bundles = jdiscOsgi.bundles();
return bundles.toArray(new Bundle[bundles.size()]);
}
public Class
© 2015 - 2025 Weber Informatics LLC | Privacy Policy