Examples of beforeClose()


Examples of com.tensegrity.wpalo.client.ui.editor.IEditor.beforeClose()

    final CloseObserver observer = new CloseObserver() {
      public void finishedClosed() {
        Dispatcher.forwardEvent(WPaloEvent.LOGOUT);
      }
    };
    editor.beforeClose(new AsyncCallback<Boolean>() {
      public void onSuccess(Boolean result) {
        if (result) {
          editor.close(observer);           
          editorpanel.setHeading("");
          editorpanel.removeAll();
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.sql.vendor.Vendor.beforeClose()

          v.beforeQuery(c);
          s.execute(query);
          v.afterQuery(c);
         
          v.beforeClose(c);
          s.close();
          v.afterClose(c);
         
        } catch (Throwable e) { // may throw D2RQException at runtime
          log.error("Keep alive connection test failed: " + e.getMessage());
View Full Code Here

Examples of org.apache.flume.serialization.EventSerializer.beforeClose()

            schemaFile.toURI().toURL().toExternalForm());
      }
      serializer.write(event);
    }
    serializer.flush();
    serializer.beforeClose();
    out.flush();
    out.close();
  }

  private byte[] serializeAvro(Object datum, Schema schema) throws IOException {
View Full Code Here

Examples of org.apache.jetspeed.components.persistence.store.PersistenceStoreEventListener.beforeClose()

  {
    Iterator itr = listeners.iterator();
    while(itr.hasNext())
    {
      PersistenceStoreEventListener psel = (PersistenceStoreEventListener) itr.next();
      psel.beforeClose(new PersistenceStoreEventImpl(store, null));
    }

  }
 
  public void afterClose()
View Full Code Here

Examples of org.impalaframework.spring.module.SpringModuleLoader.beforeClose()

        Assert.notNull(moduleLoaderRegistry, ModuleLoaderRegistry.class.getName() + " cannot be null");       
        final ModuleLoader loader = moduleLoaderRegistry.getModuleLoader(ModuleRuntimeUtils.getModuleLoaderKey(moduleDefinition), false);
       
        if (loader instanceof SpringModuleLoader) {
            SpringModuleLoader springModuleLoader = (SpringModuleLoader) loader;
            springModuleLoader.beforeClose(applicationId, applicationContext, moduleDefinition);
        }
       
        if (applicationContext instanceof ConfigurableApplicationContext) {
            ConfigurableApplicationContext configurableContext = (ConfigurableApplicationContext) applicationContext;
            configurableContext.close();
View Full Code Here

Examples of org.impalaframework.spring.module.SpringModuleLoader.beforeClose()

        Assert.notNull(moduleLoaderRegistry, ModuleLoaderRegistry.class.getName() + " cannot be null");       
        final ModuleLoader loader = moduleLoaderRegistry.getModuleLoader(ModuleRuntimeUtils.getModuleLoaderKey(moduleDefinition), false);
       
        if (loader instanceof SpringModuleLoader) {
            SpringModuleLoader springModuleLoader = (SpringModuleLoader) loader;
            springModuleLoader.beforeClose(applicationId, applicationContext, moduleDefinition);
        }
       
        if (applicationContext instanceof ConfigurableApplicationContext) {
            ConfigurableApplicationContext configurableContext = (ConfigurableApplicationContext) applicationContext;
            configurableContext.close();
View Full Code Here

Examples of org.impalaframework.spring.module.SpringModuleLoader.beforeClose()

    public void testCloseContextWithSpringModuleLoader() throws Exception {
       
        SpringModuleLoader sm = (SpringModuleLoader) moduleLoader;
        moduleLoaderRegistry.addItem("spring-APPLICATION", moduleLoader);
       
        sm.beforeClose("id", applicationContext, definition);
        applicationContext.close();
       
        replay(applicationContext, moduleLoader);
        loader.closeContext("id", definition, applicationContext);
        verify(applicationContext, moduleLoader);
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.