Examples of removeApplication()


Examples of org.exoplatform.web.WebAppController.removeApplication()

            {
               PortletApplication application = controller.getApplication(applicationId_);
               if (application != null)
               {
                  application.onDestroy();
                  controller.removeApplication(applicationId_);
               }
            }
         }
      }
      catch (Exception ex)
View Full Code Here

Examples of org.exoplatform.web.WebAppController.removeApplication()

                    return;
                }
            }
            service.removeGadget(name);
            WebAppController webController = uiManagement.getApplicationComponent(WebAppController.class);
            webController.removeApplication(EXO_GADGET_GROUP + "/" + name);
            Gadget gadget = uiManagement.getGadget(name);
            if (gadget.isLocal()) {
                // get dir path of gadget
                String gadgetUrl = gadget.getUrl();
                String[] gaggetUrlPart = gadgetUrl.split("/");
View Full Code Here

Examples of org.exoplatform.web.WebAppController.removeApplication()

                // TODO: figure out what is happening with the controller not existing during shutdown
                if (controller != null) {
                    PortletApplication application = controller.getApplication(applicationId_);
                    if (application != null) {
                        application.onDestroy();
                        controller.removeApplication(applicationId_);
                    }
                }
            }
        } catch (Exception ex) {
            log.error("Error while destroying the porlet", ex);
View Full Code Here

Examples of org.exoplatform.web.WebAppController.removeApplication()

            {
               PortletApplication application = controller.getApplication(applicationId_);
               if (application != null)
               {
                  application.onDestroy();
                  controller.removeApplication(applicationId_);
               }
            }
         }
      }
      catch (Exception ex)
View Full Code Here

Examples of org.exoplatform.web.WebAppController.removeApplication()

                // TODO: figure out what is happening with the controller not existing during shutdown
                if (controller != null) {
                    PortletApplication application = controller.getApplication(applicationId_);
                    if (application != null) {
                        application.onDestroy();
                        controller.removeApplication(applicationId_);
                    }
                }
            }

        } catch (Exception ex) {
View Full Code Here

Examples of org.mokai.impl.camel.CamelRoutingEngine.removeApplication()

      Assert.assertTrue(applications.contains(cs1));
      Assert.assertTrue(applications.contains(cs2));
      Assert.assertTrue(applications.contains(cs3));

      // remove one of the applications
      routingEngine.removeApplication("test3");

      applications = routingEngine.getApplications();
      Assert.assertEquals(2, applications.size());

      Assert.assertTrue(applications.contains(cs1));
View Full Code Here

Examples of org.mokai.impl.camel.CamelRoutingEngine.removeApplication()

  @Test(expectedExceptions=ObjectNotFoundException.class)
  public void shouldFailToRemoveNonExistingApplication() throws Exception {
    CamelRoutingEngine routingEngine = new CamelRoutingEngine();

    try {
      routingEngine.removeApplication("test");
    } finally {
      routingEngine.shutdown();
    }
  }
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.