Package org.eclipse.osgi.baseadaptor

Examples of org.eclipse.osgi.baseadaptor.BaseAdaptor$ParentClassLoader


    try {
      FrameworkProperties.setProperties(configuration);
      FrameworkProperties.initializeProperties();
      // make sure the active framework thread is used
      setEquinoxProperties(configuration);
      current = new Framework(new BaseAdaptor(new String[0]));
      consoleMgr = ConsoleManager.startConsole(current);
      current.launch();
      framework = current;
      systemBundle = current.systemBundle;
    } finally {
View Full Code Here


    try {
      FrameworkProperties.setProperties(configuration);
      FrameworkProperties.initializeProperties();
      // make sure the active framework thread is used
      setEquinoxProperties(configuration);
      current = new Framework(new BaseAdaptor(new String[0]));
      consoleMgr = ConsoleManager.startConsole(current);
      current.launch();
      framework = current;
      systemBundle = current.systemBundle;
    } finally {
View Full Code Here

  /**
   * @see BundleClassLoader#findEntries(String, String, int)
   */
  public List<URL> findEntries(String path, String filePattern, int options) {
    BaseAdaptor adaptor = getBaseData().getAdaptor();
    List<BundleData> datas = new ArrayList<BundleData>();
    // first get the host bundle file
    datas.add(getBaseData());
    // next get the attached fragments bundle files
    FragmentClasspath[] currentFragments = getFragmentClasspaths();
    for (FragmentClasspath fragmentClasspath : currentFragments)
      datas.add(fragmentClasspath.getBundleData());

    @SuppressWarnings("unchecked")
    List<URL> result = Collections.EMPTY_LIST;
    // now search over all the bundle files
    Enumeration<URL> eURLs = adaptor.findEntries(datas, path, filePattern, options);
    if (eURLs == null)
      return result;
    result = new ArrayList<URL>();
    while (eURLs.hasMoreElements())
      result.add(eURLs.nextElement());
View Full Code Here

        // Add the properties that were supplied by the caller.
        frameworkProperties.putAll(properties);

        // Create a standard adaptor and create the framework.
        FrameworkAdaptor adaptor = new BaseAdaptor(null);
        osgi = new OSGi(adaptor);

        BundleContext systemContext = osgi.getBundleContext();

        // Register the external service factory that can be used internally in
View Full Code Here

   * @param devFile the dev classpath file
   * @param fragmentData the fragment for the dev classpath
   * @return a BundleFile to be used for a dev classpath.
   */
  BundleFile createDevClasspathBundleFile(File devFile, BaseData fragmentData) {
    BaseAdaptor adaptor = baseAdaptor;
    if (adaptor == null)
      return null;
    try {
      return adaptor.createBundleFile(devFile, fragmentData);
    } catch (IOException e) {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.baseadaptor.BaseAdaptor$ParentClassLoader

Copyright © 2018 www.massapicom. 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.