org.eclipse.osgi.launch.Equinox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.osgi Show documentation
Show all versions of org.eclipse.osgi Show documentation
This is org.eclipse.osgi jar used by Scout SDK
/*******************************************************************************
* Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.osgi.launch;
import java.io.*;
import java.net.URL;
import java.security.cert.X509Certificate;
import java.util.*;
import org.eclipse.osgi.internal.framework.EquinoxContainer;
import org.osgi.framework.*;
import org.osgi.framework.launch.Framework;
/**
* The System Bundle implementation for the Equinox Framework.
*
* @since 3.5
*/
public class Equinox implements Framework {
private final Framework systemBundle;
public Equinox(Map configuration) {
EquinoxContainer container = new EquinoxContainer(configuration);
systemBundle = (Framework) container.getStorage().getModuleContainer().getModule(0).getBundle();
}
@Override
public int getState() {
return systemBundle.getState();
}
@Override
public Dictionary getHeaders() {
return systemBundle.getHeaders();
}
@Override
public ServiceReference>[] getRegisteredServices() {
return systemBundle.getRegisteredServices();
}
@Override
public ServiceReference>[] getServicesInUse() {
return systemBundle.getServicesInUse();
}
@Override
public boolean hasPermission(Object permission) {
return systemBundle.hasPermission(permission);
}
@Override
public URL getResource(String name) {
return systemBundle.getResource(name);
}
@Override
public Dictionary getHeaders(String locale) {
return systemBundle.getHeaders(locale);
}
@Override
public Class> loadClass(String name) throws ClassNotFoundException {
return systemBundle.loadClass(name);
}
@Override
public Enumeration getResources(String name) throws IOException {
return systemBundle.getResources(name);
}
@Override
public long getLastModified() {
return systemBundle.getLastModified();
}
@Override
public BundleContext getBundleContext() {
return systemBundle.getBundleContext();
}
@Override
public Map> getSignerCertificates(int signersType) {
return systemBundle.getSignerCertificates(signersType);
}
@Override
public Version getVersion() {
return systemBundle.getVersion();
}
@Override
public File getDataFile(String filename) {
return systemBundle.getDataFile(filename);
}
@Override
public int compareTo(Bundle o) {
return systemBundle.compareTo(o);
}
public void start(int options) throws BundleException {
systemBundle.start(options);
}
public void start() throws BundleException {
systemBundle.start();
}
public void stop(int options) throws BundleException {
systemBundle.stop(options);
}
public void stop() throws BundleException {
systemBundle.stop();
}
public void update(InputStream input) throws BundleException {
systemBundle.update(input);
}
public void update() throws BundleException {
systemBundle.update();
}
public void uninstall() throws BundleException {
systemBundle.uninstall();
}
public long getBundleId() {
return systemBundle.getBundleId();
}
public String getLocation() {
return systemBundle.getLocation();
}
public String getSymbolicName() {
return systemBundle.getSymbolicName();
}
public Enumeration getEntryPaths(String path) {
return systemBundle.getEntryPaths(path);
}
public URL getEntry(String path) {
return systemBundle.getEntry(path);
}
public Enumeration findEntries(String path, String filePattern, boolean recurse) {
return systemBundle.findEntries(path, filePattern, recurse);
}
public A adapt(Class type) {
return systemBundle.adapt(type);
}
@Override
public void init() throws BundleException {
systemBundle.init();
}
/**
* @since 3.10
*/
@Override
public void init(FrameworkListener... listeners) throws BundleException {
systemBundle.init(listeners);
}
@Override
public FrameworkEvent waitForStop(long timeout) throws InterruptedException {
return systemBundle.waitForStop(timeout);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy