Package org.springmodules.cache.provider

Examples of org.springmodules.cache.provider.ReflectionCacheModelEditor


   */
  public PropertyEditor getFlushingModelEditor() {
    Map propertyEditors = new HashMap();
    propertyEditors.put("cacheNames", new StringArrayPropertyEditor());

    ReflectionCacheModelEditor editor = new ReflectionCacheModelEditor();
    editor.setCacheModelClass(GigaSpacesFlushingModel.class);
    editor.setCacheModelPropertyEditors(propertyEditors);
    return editor;
  }
View Full Code Here


  /**
   * @see org.springmodules.cache.provider.CacheProviderFacade#getCachingModelEditor()
   */
  public PropertyEditor getCachingModelEditor() {
    ReflectionCacheModelEditor editor = new ReflectionCacheModelEditor();
    editor.setCacheModelClass(JcsCachingModel.class);
    return editor;
  }
View Full Code Here

    PropertyEditor editor = facade.getCachingModelEditor();

    assertNotNull(editor);
    assertEquals(ReflectionCacheModelEditor.class, editor.getClass());

    ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
    assertEquals(GigaSpacesCachingModel.class, modelEditor.getCacheModelClass());
    assertNull(modelEditor.getCacheModelPropertyEditors());
  }
View Full Code Here

    PropertyEditor editor = facade.getFlushingModelEditor();

    assertNotNull(editor);
    assertEquals(ReflectionCacheModelEditor.class, editor.getClass());

    ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
    assertEquals(GigaSpacesFlushingModel.class, modelEditor.getCacheModelClass());
  Map propertyEditors = modelEditor.getCacheModelPropertyEditors();
  assertEquals(1, propertyEditors.size());
  assertSame(StringArrayPropertyEditor.class, propertyEditors.get("cacheNames").getClass());
  }
View Full Code Here

    PropertyEditor editor = cacheFacade.getCachingModelEditor();

    assertNotNull(editor);
    assertEquals(ReflectionCacheModelEditor.class, editor.getClass());

    ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
    assertEquals(EhCacheCachingModel.class, modelEditor.getCacheModelClass());
    assertNull(modelEditor.getCacheModelPropertyEditors());
  }
View Full Code Here

    PropertyEditor editor = cacheFacade.getFlushingModelEditor();

    assertNotNull(editor);
    assertEquals(ReflectionCacheModelEditor.class, editor.getClass());

    ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
    assertEquals(EhCacheFlushingModel.class, modelEditor.getCacheModelClass());
    Map propertyEditors = modelEditor.getCacheModelPropertyEditors();
    assertEquals(1, propertyEditors.size());
    assertSame(StringArrayPropertyEditor.class, propertyEditors.get("cacheNames").getClass());
  }
View Full Code Here

  /**
   * @see org.springmodules.cache.provider.CacheProviderFacade#getCachingModelEditor()
   */
  public PropertyEditor getCachingModelEditor() {
    ReflectionCacheModelEditor editor = new ReflectionCacheModelEditor();
    editor.setCacheModelClass(JbossCacheCachingModel.class);
    return editor;
  }
View Full Code Here

    PropertyEditor editor = cacheFacade.getCachingModelEditor();

    assertNotNull(editor);
    assertEquals(ReflectionCacheModelEditor.class, editor.getClass());

    ReflectionCacheModelEditor modelEditor = (ReflectionCacheModelEditor) editor;
    assertEquals(JbossCacheCachingModel.class, modelEditor.getCacheModelClass());
    assertNull(modelEditor.getCacheModelPropertyEditors());
  }
View Full Code Here

  /**
   * @see org.springmodules.cache.provider.CacheProviderFacade#getCachingModelEditor()
   */
  public PropertyEditor getCachingModelEditor() {
    ReflectionCacheModelEditor editor = new ReflectionCacheModelEditor();
    editor.setCacheModelClass(EhCacheCachingModel.class);
    return editor;
  }
View Full Code Here

   */
  public PropertyEditor getFlushingModelEditor() {
    Map propertyEditors = new HashMap();
    propertyEditors.put("cacheNames", new StringArrayPropertyEditor());

    ReflectionCacheModelEditor editor = new ReflectionCacheModelEditor();
    editor.setCacheModelClass(JbossCacheFlushingModel.class);
    editor.setCacheModelPropertyEditors(propertyEditors);
    return editor;
  }
View Full Code Here

TOP

Related Classes of org.springmodules.cache.provider.ReflectionCacheModelEditor

Copyright © 2018 www.massapicom. 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.