Examples of EhCacheFlushingModel


Examples of org.springmodules.cache.provider.ehcache.EhCacheFlushingModel

    Element element = new DomElementStub("flushing");
    element.setAttribute("cacheNames", cacheNames);

    FlushingModel actual = parser.doParseFlushingModel(element,
        flushBeforeMethodExecution);
    EhCacheFlushingModel expected = new EhCacheFlushingModel(cacheNames);
    expected.setFlushBeforeMethodExecution(flushBeforeMethodExecution);

    assertEquals(expected, actual);
  }
View Full Code Here

Examples of org.springmodules.cache.provider.ehcache.EhCacheFlushingModel

   * @see AbstractCacheModelParser#doParseFlushingModel(Element, boolean)
   */
  protected FlushingModel doParseFlushingModel(Element element,
      boolean flushBeforeMethodExecution) {
    String csvCacheNames = element.getAttribute("cacheNames");
    EhCacheFlushingModel model = new EhCacheFlushingModel(csvCacheNames);
    model.setFlushBeforeMethodExecution(flushBeforeMethodExecution);
    return model;
  }
View Full Code Here

Examples of org.springmodules.cache.provider.ehcache.EhCacheFlushingModel

    /* (non-Javadoc)
     * @see org.jasig.portal.utils.cache.ICacheModelFactory#getFlushingModel(java.lang.String)
     */
    public FlushingModel getFlushingModel(String cacheName) {
        return new EhCacheFlushingModel(cacheName);
    }
View Full Code Here

Examples of org.springmodules.cache.provider.ehcache.EhCacheFlushingModel

     *           wrapping any unexpected exception thrown by the cache.
     * @see AbstractCacheProviderFacade#onFlushCache(FlushingModel)
     */
    @Override
    protected void onFlushCache(FlushingModel model) throws CacheException {
        final EhCacheFlushingModel flushingModel = (EhCacheFlushingModel) model;
        final String[] cacheNames = flushingModel.getCacheNames();

        if (!ObjectUtils.isEmpty(cacheNames)) {
            CacheException cacheException = null;

            try {
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.