125. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:11 AM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

125.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\cache AbstractCacheManager.java Wed May 29 15:26:02 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\cache AbstractCacheManager.java Mon Jun 10 19:30:05 2019 UTC

125.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 152
Changed 1 2
Inserted 0 0
Removed 0 0

125.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

125.4 Active regular expressions

No regular expressions were active.

125.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2005 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.cache;
  6  
  7   import org .apache.co mmons.lang .Validate;
  8   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  9   import org .springfra mework.bea ns.factory .annotatio n.Qualifie r;
  10  
  11   import gov .va.med.fw .service.A bstractCom ponent;
  12  
  13   /**
  14    * Abstrac t managmen t of a cac he. Implem entation o f cache is  delegated  to the
  15    * injecte d CacheStr ategy.
  16    * 
  17    * Created  Nov 3, 20 05 12:25:3 4 PM
  18    * 
  19    * @author   DNS     DN S
  20    */
  21   public abs tract clas s Abstract CacheManag er extends  AbstractC omponent i mplements  CacheManag er {
  22  
  23           pr ivate stat ic final l ong serial VersionUID  = -137034 6746640850 300L;
  24           
  25           @A utowired
  26           @Q ualifier(" ehCacheStr ategy")
  27           pr ivate Cach eStrategy  cacheStrat egy;
  28           
  29           pr ivate bool ean should CacheOutsi deTransact ion = fals e;
  30  
  31           pu blic Objec t getItem( Object key ) {
  32                    retu rn cacheSt rategy.get Item(key);
  33           }
  34  
  35           pu blic synch ronized Ob ject remov eItem(Obje ct key) {
  36                    retu rn cacheSt rategy.rem oveItem(ke y);
  37           }
  38  
  39           pu blic void  cacheItem( Object key , Object v alue) {
  40                    cach eStrategy. cacheItem( key, value );
  41           }
  42  
  43           pu blic boole an contain sItem(Obje ct key) {
  44                    retu rn cacheSt rategy.con tainsItem( key);
  45           }
  46  
  47           pu blic void  afterPrope rtiesSet()  {
  48                    Vali date.notNu ll(cacheSt rategy, "T he cacheSt rategy is  null for "  + getClas s().getNam e());
  49           }
  50  
  51           /* *
  52            *  @return R eturns the  cacheStra tegy.
  53            * /
  54           pu blic Cache Strategy g etCacheStr ategy() {
  55                    retu rn cacheSt rategy;
  56           }
  57  
  58           /* *
  59            *  @param ca cheStrateg y
  60            *              The cach eStrategy  to set.
  61            * /
  62           pu blic void  setCacheSt rategy(Cac heStrategy  cacheStra tegy) {
  63                    this .cacheStra tegy = cac heStrategy ;
  64           }
  65  
  66           /* *
  67            *  @param sh ouldCacheO utsideTran saction
  68            *              The shou ldCacheOut sideTransa ction to s et.
  69            * /
  70           pu blic void  setShouldC acheOutsid eTransacti on(boolean  shouldCac heOutsideT ransaction ) {
  71                    this .shouldCac heOutsideT ransaction  = shouldC acheOutsid eTransacti on;
  72           }
  73  
  74           pr otected bo olean shou ldCacheOut sideTransa ction() {
  75                    retu rn shouldC acheOutsid eTransacti on;
  76           }
  77   }