Examples of release()


Examples of org.olat.core.gui.media.MediaResource.release()

      FileUtils.copy(mr.getInputStream(), fOut);
    } catch (FileNotFoundException fnfe) {
      return false;
    } finally {
      FileUtils.closeSafely(fOut);
      mr.release();
    }
    return true;
  }

  /**
 
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.process.ProcessVariableConnection.release()

              if (link.getSourceParam() == oldVar || link.getTargetParam() == oldVar)
              {
                // DEBUG System.out.println ("Removing data link " + link.getName () + " from " + link.getSourceParam ().getPath () + " to " + link.getTargetParam ().getPath ());
                ProcessVariableConnection con = (ProcessVariableConnection) link.getRepresentation();
                con.release();

                // Remove the link itself
                currentProcess.removeDataLink(link);
              }
            }
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.release()

  public void shutdown()
  {
    PersistenceContext pc = getExistingPersistenceContext();
    if (pc != null)
    {
      pc.release();
    }
    getPersistenceContextProvider().shutdown();
  }

  //////////////////////////////////////////////////
View Full Code Here

Examples of org.openmim.infrastructure.ObjectCache.release()

        int oc = (int) OBJCOUNT;
        ObjectCache cache = ObjectCacheTest.cache;
        long start = System.currentTimeMillis();
        if (RELEASE_RATE == 8)
            for (int i = 0; i < oc; ++i) {
                cache.release(cache.get());
            }
        else if (RELEASE_RATE == 0)
            for (int i = 0; i < oc; ++i) {
                cache.get();
            }
View Full Code Here

Examples of org.openqa.jetty.util.Resource.release()

            LogSupport.ignore(log,e);
        }
        finally
        {
            if (resource!=null && !(resource instanceof CachedResource))
                resource.release();
        }
    }

    /* ------------------------------------------------------------------- */
    public void handleGet(HttpRequest request,
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions.release()

            Actions action = new Actions(getDriver());
            action.moveToElement(element);
            action.moveByOffset(0, 1);
            action.clickAndHold();
            action.moveByOffset(xOffset, yOffset);
            action.release();
            action.build().perform();
        } else {
            Actions action = new Actions(getDriver());
            action.dragAndDropBy(element, xOffset, yOffset);
            action.build().perform();
View Full Code Here

Examples of org.openrdf.http.client.connections.HTTPRequest.release()

    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    finally {
      request.release();
    }
  }

  public GraphQueryClient postGraphQuery(QueryLanguage ql, String query, String baseURI)
    throws StoreException, MalformedQueryException
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext.release()

     
      // Create a new instance of the manager to verify that it copes with a non-cached changeset.
      changesetManager = new ChangesetManager(dbCtx);
      changesetManager.addChangesetIfRequired(changesetId, user);
     
      dbCtx.release();
    }
}
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext2.release()

     
        try {
          runImpl(dbCtx);

        } finally {
            dbCtx.release();
        }
  }
}
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.DatasetContext.release()

      nodeManager.addEntity(node);
     
      dsCtx.complete();
     
    } finally {
      dsCtx.release();
    }
  }


  /**
 
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.