Examples of BundleData


Examples of org.apache.aries.jmx.codec.BundleData

    public CompositeData getBundle(long id) throws IOException {
        Bundle bundle = bundleContext.getBundle(id);
        if (bundle == null)
            return null;

        BundleData data = new BundleData(bundleContext, bundle, packageAdmin, startLevel);
        return data.toCompositeData();
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.BundleData

    private TabularData listBundles(Collection<String> items) throws IOException {
        Bundle[] containerBundles = bundleContext.getBundles();
        List<BundleData> bundleDatas = new ArrayList<BundleData>();
        if (containerBundles != null) {
            for (Bundle containerBundle : containerBundles) {
                bundleDatas.add(new BundleData(bundleContext, containerBundle, packageAdmin, startLevel));
            }
        }
        TabularData bundleTable = new TabularDataSupport(BUNDLES_TYPE);
        for (BundleData bundleData : bundleDatas) {
            bundleTable.put(bundleData.toCompositeData(items));
View Full Code Here

Examples of org.apache.aries.jmx.codec.BundleData

    public TabularData listBundles() throws IOException {
        Bundle[] containerBundles = bundleContext.getBundles();
        List<BundleData> bundleDatas = new ArrayList<BundleData>();
        if (containerBundles != null) {
            for (Bundle containerBundle : containerBundles) {
                bundleDatas.add(new BundleData(bundleContext, containerBundle, packageAdmin, startLevel));
            }
        }
        TabularData bundleTable = new TabularDataSupport(BUNDLES_TYPE);
        for (BundleData bundleData : bundleDatas) {
            bundleTable.put(bundleData.toCompositeData());
View Full Code Here

Examples of org.apache.aries.jmx.codec.BundleData

    public TabularData listBundles() throws IOException {
        Bundle[] containerBundles = bundleContext.getBundles();
        List<BundleData> bundleDatas = new ArrayList<BundleData>();
        if (containerBundles != null) {
            for (Bundle containerBundle : containerBundles) {
                bundleDatas.add(new BundleData(bundleContext, containerBundle, packageAdmin, startLevel));
            }
        }
        TabularData bundleTable = new TabularDataSupport(BUNDLES_TYPE);
        for (BundleData bundleData : bundleDatas) {
            bundleTable.put(bundleData.toCompositeData());
View Full Code Here

Examples of org.apache.aries.jmx.codec.BundleData

            } else {
                o = null;
            }
        } else if (adapter.equals(BundleData.class)) {
            if (bundleDelegate != null && packageAdmin != null && startLevel != null) {
                o = new BundleData(
                        bundleDelegate.getBundleContext(),
                        bundleDelegate,
                        packageAdmin,
                        startLevel);
            } else {
View Full Code Here

Examples of org.apache.aries.jmx.codec.BundleData

    public TabularData listBundles() throws IOException {
        Bundle[] containerBundles = bundleContext.getBundles();
        List<BundleData> bundleDatas = new ArrayList<BundleData>();
        if (containerBundles != null) {
            for (Bundle containerBundle : containerBundles) {
                bundleDatas.add(new BundleData(bundleContext, containerBundle, packageAdmin, startLevel));
            }
        }
        TabularData bundleTable = new TabularDataSupport(BUNDLES_TYPE);
        for (BundleData bundleData : bundleDatas) {
            bundleTable.put(bundleData.toCompositeData());
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleData

    }
    return new SignedContentFile(result.getSignedContent());
  }

  public SignedContent getSignedContent(Bundle bundle) throws IOException, InvalidKeyException, SignatureException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException, IllegalArgumentException {
    final BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData) data).getStorageHook(SignedStorageHook.KEY);
    SignedContent result = hook != null ? hook.signedContent : null;
    if (result != null)
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleData

    }
    return new SignedContentFile(result.getSignedContent());
  }

  public SignedContent getSignedContent(Bundle bundle) throws IOException, InvalidKeyException, SignatureException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException, IllegalArgumentException {
    final BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData) data).getStorageHook(SignedStorageHook.KEY);
    SignedContent result = hook != null ? hook.signedContent : null;
    if (result != null)
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleData

    result.setBundleFile(contentBundleFile, VERIFY_ALL);
    return result;
  }

  public CertificateVerifier getVerifier(Bundle bundle) throws IOException {
    BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData)data).getStorageHook(SignedStorageHook.KEY);
    SignedBundleFile signedBundle = hook != null ? hook.signedBundleFile : null;
    if (signedBundle != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.