@Override public ModuleLoader call() throws Exception { if (!isValid) { return null; } return getRevision().getRevisions().getContainer().adaptor.createModuleLoader(ModuleWiring.this); } }
private void invalidate0(boolean releaseLoader) { ModuleLoader current; synchronized (monitor) { this.isValid = false; current = loader; if (releaseLoader) { loader = null; } } revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
@Override public ModuleLoader call() throws Exception { if (!isValid) { return null; } return getRevision().getRevisions().getContainer().adaptor.createModuleLoader(ModuleWiring.this); } }
@Override public ModuleLoader call() throws Exception { if (!isValid) { return null; } return getRevision().getRevisions().getContainer().adaptor.createModuleLoader(ModuleWiring.this); } }
@Override public ModuleLoader call() throws Exception { if (!isValid) { return null; } return getRevision().getRevisions().getContainer().adaptor.createModuleLoader(ModuleWiring.this); } }
@Override public ModuleLoader call() throws Exception { if (!isValid) { return null; } return getRevision().getRevisions().getContainer().adaptor.createModuleLoader(ModuleWiring.this); } }
private void invalidate0(boolean releaseLoader) { // set the isValid to false first isValid = false; ModuleLoader current = releaseLoader ? loader.getAndClear() : loader.get(); revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
private void invalidate0(boolean releaseLoader) { // set the isValid to false first isValid = false; ModuleLoader current = releaseLoader ? loader.getAndClear() : loader.get(); revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
private void invalidate0(boolean releaseLoader) { // set the isValid to false first isValid = false; ModuleLoader current = releaseLoader ? loader.getAndClear() : loader.get(); revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
private void invalidate0(boolean releaseLoader) { // set the isValid to false first isValid = false; ModuleLoader current = releaseLoader ? loader.getAndClear() : loader.get(); revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
private void invalidate0(boolean releaseLoader) { // set the isValid to false first isValid = false; ModuleLoader current = releaseLoader ? loader.getAndClear() : loader.get(); revision.getRevisions().getContainer().getAdaptor().invalidateWiring(this, current); }
@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); } } } }
private void clearManifestCache(ModuleWiring moduleWiring) { boolean frameworkActive = Module.ACTIVE_SET.contains(storage.getModuleContainer().getModule(0).getState()); ModuleRevision revision = moduleWiring.getRevision(); Module module = revision.getRevisions().getModule(); boolean isUninstallingOrUninstalled = State.UNINSTALLED.equals(module.getState()) ^ module.holdsTransitionEventLock(ModuleEvent.UNINSTALLED); if (!frameworkActive || !isUninstallingOrUninstalled) { // only do this when the framework is not active or when the bundle is not uninstalled Generation generation = (Generation) moduleWiring.getRevision().getRevisionInfo(); generation.clearManifestCache(); } }
private void clearManifestCache(ModuleWiring moduleWiring) { boolean frameworkActive = Module.ACTIVE_SET.contains(storage.getModuleContainer().getModule(0).getState()); ModuleRevision revision = moduleWiring.getRevision(); Module module = revision.getRevisions().getModule(); boolean isUninstallingOrUninstalled = State.UNINSTALLED.equals(module.getState()) ^ module.holdsTransitionEventLock(ModuleEvent.UNINSTALLED); if (!frameworkActive || !isUninstallingOrUninstalled) { // only do this when the framework is not active or when the bundle is not uninstalled Generation generation = (Generation) moduleWiring.getRevision().getRevisionInfo(); generation.clearManifestCache(); } }
private void clearManifestCache(ModuleWiring moduleWiring) { boolean frameworkActive = Module.ACTIVE_SET.contains(storage.getModuleContainer().getModule(0).getState()); ModuleRevision revision = moduleWiring.getRevision(); Module module = revision.getRevisions().getModule(); boolean isUninstallingOrUninstalled = State.UNINSTALLED.equals(module.getState()) ^ module.holdsTransitionEventLock(ModuleEvent.UNINSTALLED); if (!frameworkActive || !isUninstallingOrUninstalled) { // only do this when the framework is not active or when the bundle is not uninstalled Generation generation = (Generation) moduleWiring.getRevision().getRevisionInfo(); generation.clearManifestCache(); } }
private void clearManifestCache(ModuleWiring moduleWiring) { boolean frameworkActive = Module.ACTIVE_SET.contains(storage.getModuleContainer().getModule(0).getState()); ModuleRevision revision = moduleWiring.getRevision(); Module module = revision.getRevisions().getModule(); boolean isUninstallingOrUninstalled = State.UNINSTALLED.equals(module.getState()) ^ module.holdsTransitionEventLock(ModuleEvent.UNINSTALLED); if (!frameworkActive || !isUninstallingOrUninstalled) { // only do this when the framework is not active or when the bundle is not uninstalled Generation generation = (Generation) moduleWiring.getRevision().getRevisionInfo(); generation.clearManifestCache(); } }
private void clearManifestCache(ModuleWiring moduleWiring) { boolean frameworkActive = Module.ACTIVE_SET.contains(storage.getModuleContainer().getModule(0).getState()); ModuleRevision revision = moduleWiring.getRevision(); Module module = revision.getRevisions().getModule(); boolean isUninstallingOrUninstalled = State.UNINSTALLED.equals(module.getState()) ^ module.holdsTransitionEventLock(ModuleEvent.UNINSTALLED); if (!frameworkActive || !isUninstallingOrUninstalled) { // only do this when the framework is not active or when the bundle is not uninstalled Generation generation = (Generation) moduleWiring.getRevision().getRevisionInfo(); generation.clearManifestCache(); } }
@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); } }