@Override public void dispatchEvent(ContainerWiring eventListener, FrameworkListener[] frameworkListeners, int eventAction, Collection<Module> eventObject) { try { refresh(eventObject); } finally { adaptor.publishContainerEvent(ContainerEvent.REFRESH, moduleDatabase.getModule(0), null, frameworkListeners); } }
@Override public void dispatchEvent(ContainerWiring eventListener, FrameworkListener[] frameworkListeners, int eventAction, Collection<Module> eventObject) { try { refresh(eventObject); } finally { adaptor.publishContainerEvent(ContainerEvent.REFRESH, moduleDatabase.getModule(0), null, frameworkListeners); } }
@Override public void dispatchEvent(ContainerWiring eventListener, FrameworkListener[] frameworkListeners, int eventAction, Collection<Module> eventObject) { try { refresh(eventObject); } finally { adaptor.publishContainerEvent(ContainerEvent.REFRESH, moduleDatabase.getModule(0), null, frameworkListeners); } }
@Override public void dispatchEvent(ContainerWiring eventListener, FrameworkListener[] frameworkListeners, int eventAction, Collection<Module> eventObject) { try { refresh(eventObject); } finally { adaptor.publishContainerEvent(ContainerEvent.REFRESH, moduleDatabase.getModule(0), null, frameworkListeners); } }
@Override public void dispatchEvent(ContainerWiring eventListener, FrameworkListener[] frameworkListeners, int eventAction, Collection<Module> eventObject) { try { refresh(eventObject); } finally { adaptor.publishContainerEvent(ContainerEvent.REFRESH, moduleDatabase.getModule(0), null, frameworkListeners); } }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
@Override public void start(StartOptions... options) throws BundleException { // make sure to init if needed init(); // Always transient super.start(StartOptions.TRANSIENT, StartOptions.USE_ACTIVATION_POLICY); getRevisions().getContainer().adaptor.publishContainerEvent(ContainerEvent.STARTED, this, null); }
/** * 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); } } }
/** * 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); } } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragments, systemModule); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } getClasspathManager().loadFragments(fragments); } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragments, systemModule); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } getClasspathManager().loadFragments(fragments); } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragments, systemModule); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } getClasspathManager().loadFragments(fragments); } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragments, systemModule); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } getClasspathManager().loadFragments(fragments); } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); for (ModuleRevision fragment : fragments) { try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragment, getWiring().getRevision().getRevisions().getModule()); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } } } }
@Override public void loadFragments(Collection<ModuleRevision> fragments) { Module systemModule = getWiring().getRevision().getRevisions().getModule(); for (ModuleRevision fragment : fragments) { try { this.getGeneration().getBundleInfo().getStorage().getExtensionInstaller().addExtensionContent(fragment, getWiring().getRevision().getRevisions().getModule()); } catch (BundleException e) { systemModule.getContainer().getAdaptor().publishContainerEvent(ContainerEvent.ERROR, systemModule, e); } } getClasspathManager().loadFragments(fragments); } }