Examples of unload()


Examples of org.apache.geronimo.kernel.config.ConfigurationManager.unload()

            } catch (Exception e) {
                throw new DeploymentException("Unable to copy domain and server from parent configuration", e);
            } finally {
                if (loaded) {
                    //we need to unload again so the loadedAncestors list will be in the correct order to start configs.
                    configurationManager.unload(parent);
                }
            }
        } catch (Exception e) {
            throw new DeploymentException("Unable to load first parent of configuration " + configurationData.getId(), e);
        } finally {
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.unload()

                                // the module is not running
                            } else {
                                throw e;
                            }
                        }
                        configurationManager.unload(moduleID);
                        updateStatus("Module "+moduleID+" unloaded.");
                    } catch (InternalKernelException e) {
                        // this is cause by the kernel being already shutdown
                    } catch (NoSuchConfigException e) {
                        // module was already undeployed - just continue
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.unload()

                        } else {
                            System.out.println("Unmatched name '"+clean(e.getGBeanName().getKeyProperty("name"))+"'");
                            throw e;
                        }
                    }
                    configurationManager.unload(moduleID);
                    addModule(module);
                }
            } finally {
                ConfigurationUtil.releaseConfigurationManager(kernel, configurationManager);
            }
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.unload()

                        if(e.getGBeanName().equals(configName)) {
                            // The module isn't running -- that's OK
                        } else throw e;
                    }
                    try {
                        configurationManager.unload(configID);
                        updateStatus("Unloaded "+configID);
                    } catch(InternalKernelException e) {
                        Exception cause = (Exception)e.getCause();
                        if(cause instanceof NoSuchConfigException) {
                            // The modules isn't loaded -- that's OK
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.unload()

                    // This is a hack that seems to work. Please fix this when
                    // you understand what is happening or where you can get the
                    // ObjectName from the configId without calling
                    // ConfigurationManager.load(URI).
                    if (configurationManager.isLoaded(config))
                        configurationManager.unload(config);

                    ObjectName configName = configurationManager.load(config);
                    kernel.startRecursiveGBean(configName);
                }
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

          public boolean handleResourceChanged(final Resource resource) {
            for (Iterator it = myEditingDomain.getResourceSet()
                .getResources().iterator(); it.hasNext();) {
              Resource nextResource = (Resource) it.next();
              nextResource.unload();
            }
            if (myViewer != null) {
              myViewer.getControl().getDisplay().asyncExec(
                  myViewerRefreshRunnable);
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

          public boolean handleResourceDeleted(Resource resource) {
            for (Iterator it = myEditingDomain.getResourceSet()
                .getResources().iterator(); it.hasNext();) {
              Resource nextResource = (Resource) it.next();
              nextResource.unload();
            }
            if (myViewer != null) {
              myViewer.getControl().getDisplay().asyncExec(
                  myViewerRefreshRunnable);
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

          public boolean handleResourceMoved(Resource resource,
              final URI newURI) {
            for (Iterator it = myEditingDomain.getResourceSet()
                .getResources().iterator(); it.hasNext();) {
              Resource nextResource = (Resource) it.next();
              nextResource.unload();
            }
            if (myViewer != null) {
              myViewer.getControl().getDisplay().asyncExec(
                  myViewerRefreshRunnable);
            }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

    myWorkspaceSynchronizer = null;
    myViewerRefreshRunnable = null;
    for (Iterator it = myEditingDomain.getResourceSet().getResources()
        .iterator(); it.hasNext();) {
      Resource resource = (Resource) it.next();
      resource.unload();
    }
    ((TransactionalEditingDomain) myEditingDomain).dispose();
    myEditingDomain = null;
  }
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.unload()

          public boolean handleResourceChanged(final Resource resource) {
            for (Iterator it = myEditingDomain.getResourceSet()
                .getResources().iterator(); it.hasNext();) {
              Resource nextResource = (Resource) it.next();
              nextResource.unload();
            }
            if (myViewer != null) {
              myViewer.getControl().getDisplay().asyncExec(
                  myViewerRefreshRunnable);
            }
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.