Examples of FlushingModel


Examples of org.springmodules.cache.FlushingModel

  public void testParseFlushingModel() {
    Element element = new DomElementStub("flushing");
    element.setAttribute("when", "after");

    FlushingModel expected = new MockFlushingModel();

    parser.doParseFlushingModel(element, false);
    parserControl.setReturnValue(expected);

    parserControl.replay();

    FlushingModel actual = parser.parseFlushingModel(element);
    assertSame(expected, actual);

    parserControl.verify();
  }
View Full Code Here

Examples of org.springmodules.cache.FlushingModel

  public FlushingInterceptorTests(String name) {
    super(name);
  }

  public void testAfterPropertiesSetWhenCacheModelValidatorThrowsException() {
    FlushingModel model = new MockFlushingModel();
    Map models = new HashMap();
    models.put("key", model);

    setUpValidator();
    cacheProviderFacadeControl.expectAndReturn(cacheProviderFacade
View Full Code Here

Examples of org.springmodules.cache.FlushingModel

    cacheProviderFacadeControl.expectAndReturn(cacheProviderFacade
        .modelValidator(), validator);

    for (Iterator i = models.entrySet().iterator(); i.hasNext();) {
      Map.Entry entry = (Map.Entry) i.next();
      FlushingModel model = (FlushingModel) entry.getValue();
      validator.validateFlushingModel(model);
    }

    replay();
View Full Code Here

Examples of org.springmodules.cache.FlushingModel

         * @see org.jasig.portal.utils.threading.MapCachingDoubleCheckedCreator#createInternal(java.lang.Object, java.lang.Object[])
         */
        @SuppressWarnings("unchecked")
        @Override
        protected Map<?, ?> createInternal(String cacheName, Object... args) {
            final FlushingModel flushingModel = CacheProviderFactory.this.cacheModelFactory.getFlushingModel(cacheName);
            final CachingModel cachingModel = CacheProviderFactory.this.cacheModelFactory.getCachingModel(cacheName);

            return new MapCacheProvider(CacheProviderFactory.this.cacheProviderFacade, cachingModel, flushingModel);
        }
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.