Examples of BundleManager


Examples of org.jboss.osgi.framework.spi.BundleManager

        ServiceName puServiceName = depUnit.getAttachment(JpaAttachments.PERSISTENCE_UNIT_SERVICE_KEY);
        XBundle bundle = depUnit.getAttachment(OSGiConstants.BUNDLE_KEY);
        if (bundle == null || puServiceName == null)
            return;

        BundleManager bundleManager = depUnit.getAttachment(OSGiConstants.BUNDLE_MANAGER_KEY);
        EntityManagerFactoryRegistration.addService(phaseContext.getServiceTarget(), bundleManager, puServiceName, bundle);
    }
View Full Code Here

Examples of org.osmorc.BundleManager

      return null;
    }

    // obtaining export name of the package from a providing manifest
    String exportedPackage = null;
    BundleManager bundleManager = BundleManager.getInstance(targetClass.getProject());
    ModuleFileIndex index = ModuleRootManager.getInstance(requestorModule).getFileIndex();
    List<OrderEntry> entries = index.getOrderEntriesForFile(targetFile.getVirtualFile());
    OrderEntry entry = !entries.isEmpty() ? entries.get(0) : null;
    if (entry instanceof ModuleOrderEntry) {
      Module module = ((ModuleOrderEntry)entry).getModule();
      if (module != null) {
        BundleManifest manifest = bundleManager.getManifestByObject(module);
        exportedPackage = manifest != null ? manifest.getExportedPackage(packageName) : null;
      }
    }
    else if (entry instanceof LibraryOrderEntry) {
      Library library = ((LibraryOrderEntry)entry).getLibrary();
      if (library != null) {
        BundleManifest manifest = bundleManager.getManifestByObject(library);
        exportedPackage = manifest != null ? manifest.getExportedPackage(packageName) : null;
      }
    }
    else if (entry instanceof JdkOrderEntry) {
      exportedPackage = packageName;
    }
    if (exportedPackage == null) {
      return NOT_EXPORTED;
    }

    if (!facet.getConfiguration().isManifestManuallyEdited()) {
      return null;
    }

    BundleManifest manifest = bundleManager.getManifestByObject(requestorModule);
    if (manifest != null) {
      // Imported packages
      if (manifest.isPackageImported(packageName)) {
        return null;
      }

      // Required bundles
      for (String bundleSpec : manifest.getRequiredBundles()) {
        BundleManifest bundle = bundleManager.getManifestByBundleSpec(bundleSpec);
        if (bundle != null && bundle.getExportedPackage(packageName) != null) {
          return null;
        }
      }
View Full Code Here

Examples of org.rhq.core.pc.bundle.BundleManager

            ConfigManagementFactory factory = new ConfigManagementFactoryImpl(componentService);
            configurationManager = new ConfigurationManager(configuration, componentService, factory,
                agentServiceStreamRemoter, inventoryManager);
            resourceFactoryManager = new ResourceFactoryManager(configuration, agentServiceStreamRemoter, pluginManager);
            supportManager = new SupportManager(agentServiceStreamRemoter);
            bundleManager = new BundleManager(configuration, agentServiceStreamRemoter, inventoryManager,
                measurementManager);
            driftManager = new DriftManager(configuration, agentServiceStreamRemoter, inventoryManager);
            pingManager = new PingManager(agentServiceStreamRemoter);

            for (AgentServiceLifecycleListener ll : agentServiceListeners) {
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.