Package org.springframework.cache.interceptor

Examples of org.springframework.cache.interceptor.CachePutOperation


    ceo.setName(ae.toString());
    return ceo;
  }

  CacheOperation parseUpdateAnnotation(AnnotatedElement ae, CachePut caching) {
    CachePutOperation cuo = new CachePutOperation();
    cuo.setCacheNames(caching.value());
    cuo.setCondition(caching.condition());
    cuo.setKey(caching.key());
    cuo.setName(ae.toString());
    return cuo;
  }
View Full Code Here


    for (Element opElement : putCacheMethods) {
      String name = prop.merge(opElement, parserContext.getReaderContext());
      TypedStringValue nameHolder = new TypedStringValue(name);
      nameHolder.setSource(parserContext.extractSource(opElement));
      CacheOperation op = prop.merge(opElement, parserContext.getReaderContext(), new CachePutOperation());

      Collection<CacheOperation> col = cacheOpMap.get(nameHolder);
      if (col == null) {
        col = new ArrayList<CacheOperation>(2);
        cacheOpMap.put(nameHolder, col);
View Full Code Here

    ceo.setName(ae.toString());
    return ceo;
  }

  CacheOperation parseUpdateAnnotation(AnnotatedElement ae, CachePut caching) {
    CachePutOperation cuo = new CachePutOperation();
    cuo.setCacheNames(caching.value());
    cuo.setCondition(caching.condition());
    cuo.setKey(caching.key());
    cuo.setName(ae.toString());
    return cuo;
  }
View Full Code Here

    return op;
  }

  CacheOperation parsePutAnnotation(AnnotatedElement ae, DefaultCacheConfig defaultConfig, CachePut caching) {
    CachePutOperation op = new CachePutOperation();

    op.setCacheNames(caching.value());
    op.setCondition(caching.condition());
    op.setUnless(caching.unless());
    op.setKey(caching.key());
    op.setKeyGenerator(caching.keyGenerator());
    op.setCacheManager(caching.cacheManager());
    op.setCacheResolver(caching.cacheResolver());
    op.setName(ae.toString());

    defaultConfig.applyDefault(op);
    validateCacheOperation(ae, op);

    return op;
View Full Code Here

    for (Element opElement : putCacheMethods) {
      String name = prop.merge(opElement, parserContext.getReaderContext());
      TypedStringValue nameHolder = new TypedStringValue(name);
      nameHolder.setSource(parserContext.extractSource(opElement));
      CachePutOperation op = prop.merge(opElement, parserContext.getReaderContext(), new CachePutOperation());
      op.setUnless(getAttributeValue(opElement, "unless", ""));

      Collection<CacheOperation> col = cacheOpMap.get(nameHolder);
      if (col == null) {
        col = new ArrayList<CacheOperation>(2);
        cacheOpMap.put(nameHolder, col);
View Full Code Here

TOP

Related Classes of org.springframework.cache.interceptor.CachePutOperation

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.