private static void insertFragment(FragmentClasspath fragClasspath, List<FragmentClasspath> existing) { // Find a place in the fragment list to insert this fragment. long fragID = fragClasspath.getGeneration().getRevision().getRevisions().getModule().getId(); for (ListIterator<FragmentClasspath> iExisting = existing.listIterator(); iExisting.hasNext();) { long otherID = iExisting.next().getGeneration().getRevision().getRevisions().getModule().getId(); if (fragID < otherID) { iExisting.previous(); iExisting.add(fragClasspath); return; } } existing.add(fragClasspath); }
private static void insertFragment(FragmentClasspath fragClasspath, List<FragmentClasspath> existing) { // Find a place in the fragment list to insert this fragment. long fragID = fragClasspath.getGeneration().getRevision().getRevisions().getModule().getId(); for (ListIterator<FragmentClasspath> iExisting = existing.listIterator(); iExisting.hasNext();) { long otherID = iExisting.next().getGeneration().getRevision().getRevisions().getModule().getId(); if (fragID < otherID) { iExisting.previous(); iExisting.add(fragClasspath); return; } } existing.add(fragClasspath); }
private static void insertFragment(FragmentClasspath fragClasspath, List<FragmentClasspath> existing) { // Find a place in the fragment list to insert this fragment. long fragID = fragClasspath.getGeneration().getRevision().getRevisions().getModule().getId(); for (ListIterator<FragmentClasspath> iExisting = existing.listIterator(); iExisting.hasNext();) { long otherID = iExisting.next().getGeneration().getRevision().getRevisions().getModule().getId(); if (fragID < otherID) { iExisting.previous(); iExisting.add(fragClasspath); return; } } existing.add(fragClasspath); }
private static void insertFragment(FragmentClasspath fragClasspath, List<FragmentClasspath> existing) { // Find a place in the fragment list to insert this fragment. long fragID = fragClasspath.getGeneration().getRevision().getRevisions().getModule().getId(); for (ListIterator<FragmentClasspath> iExisting = existing.listIterator(); iExisting.hasNext();) { long otherID = iExisting.next().getGeneration().getRevision().getRevisions().getModule().getId(); if (fragID < otherID) { iExisting.previous(); iExisting.add(fragClasspath); return; } } existing.add(fragClasspath); }
public Bundle getBundle() { return generation.getRevision().getBundle(); } }
/** * Closes all the classpath entry resources for this FragmentClasspath. * */ public void close() { for (int i = 0; i < entries.length; i++) { try { entries[i].getBundleFile().close(); } catch (IOException e) { generation.getBundleInfo().getStorage().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, generation.getRevision().getRevisions().getModule(), e); } } }
public Bundle getBundle() { return generation.getRevision().getBundle(); } }
/** * Closes all the classpath entry resources for this FragmentClasspath. * */ public void close() { for (int i = 0; i < entries.length; i++) { try { entries[i].close(); } catch (IOException e) { generation.getBundleInfo().getStorage().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, generation.getRevision().getRevisions().getModule(), e); } } }
public Bundle getBundle() { return generation.getRevision().getBundle(); } }
/** * Closes all the classpath entry resources for this FragmentClasspath. * */ public void close() { for (int i = 0; i < entries.length; i++) { try { entries[i].getBundleFile().close(); } catch (IOException e) { generation.getBundleInfo().getStorage().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, generation.getRevision().getRevisions().getModule(), e); } } }
/** * Closes all the classpath entry resources for this FragmentClasspath. * */ public void close() { for (int i = 0; i < entries.length; i++) { try { entries[i].close(); } catch (IOException e) { generation.getBundleInfo().getStorage().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, generation.getRevision().getRevisions().getModule(), e); } } }
/** * Closes all the classpath entry resources for this FragmentClasspath. * */ public void close() { for (int i = 0; i < entries.length; i++) { try { entries[i].getBundleFile().close(); } catch (IOException e) { generation.getBundleInfo().getStorage().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, generation.getRevision().getRevisions().getModule(), e); } } }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
/** * Constructs a ClasspathElement with the specified bundlefile and domain * @param bundlefile A BundleFile object which acts as a source * @param domain the protection domain */ public ClasspathEntry(BundleFile bundlefile, ProtectionDomain domain, Generation generation) { this.bundlefile = bundlefile; this.domain = domain; this.data = new PDEData(generation.getBundleFile().getBaseFile(), generation.getRevision().getSymbolicName()); this.manifest = getManifest(bundlefile, generation); }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
public Bundle installBundle(String location, InputStream in) throws BundleException { checkValid(); try { URLConnection content = container.getStorage().getContentConnection(null, location, in); Generation generation = container.getStorage().install(bundle.getModule(), location, content); return generation.getRevision().getBundle(); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } }
/** * Constructs a ClasspathElement with the specified bundlefile and domain * @param bundlefile A BundleFile object which acts as a source * @param domain the protection domain */ public ClasspathEntry(BundleFile bundlefile, ProtectionDomain domain, Generation generation) { this.bundlefile = bundlefile; this.domain = domain; this.data = new PDEData(generation.getBundleFile().getBaseFile(), generation.getRevision().getSymbolicName()); this.manifest = getManifest(bundlefile, generation); }