Produced by Araxis Merge on 6/11/2019 10:54:16 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\service\support | AbstractRunnableService.java | Wed May 29 15:26:30 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\service\support | AbstractRunnableService.java | Mon Jun 10 19:27:47 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 180 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | package go v.va.med.f w.service. support; | |
| 5 | ||
| 6 | // Java cl asses | |
| 7 | import jav a.util.Arr ayList; | |
| 8 | import jav a.util.Ite rator; | |
| 9 | ||
| 10 | import org .springfra mework.uti l.Assert; | |
| 11 | ||
| 12 | import gov .va.med.fw .service.A bstractCom ponent; | |
| 13 | import gov .va.med.fw .service.S erviceExce ption; | |
| 14 | ||
| 15 | /** | |
| 16 | * A gener ic abstrac t service that conta ins a list of runnab le tasks t o be | |
| 17 | * execute d at a con figurable time. | |
| 18 | * | |
| 19 | * Project : Framewor k | |
| 20 | * | |
| 21 | * @author DN S
|
|
| 22 | * @versio n 1.0 | |
| 23 | */ | |
| 24 | public abs tract clas s Abstract RunnableSe rvice exte nds Abstra ctComponen t implemen ts Runnabl e { | |
| 25 | ||
| 26 | /* * | |
| 27 | * A list of runnable services | |
| 28 | * / | |
| 29 | pr ivate Arra yList serv ices = nul l; | |
| 30 | ||
| 31 | /* * | |
| 32 | * A default construct or | |
| 33 | * / | |
| 34 | pr otected Ab stractRunn ableServic e() { | |
| 35 | supe r(); | |
| 36 | } | |
| 37 | ||
| 38 | /* * | |
| 39 | * Returns a list of r unnable se rvices | |
| 40 | * | |
| 41 | * @return R eturns the services. | |
| 42 | * / | |
| 43 | pu blic Array List getSe rvices() { | |
| 44 | retu rn service s; | |
| 45 | } | |
| 46 | ||
| 47 | /* * | |
| 48 | * Sets a li st of runn able servi ces to exe cute | |
| 49 | * | |
| 50 | * @param se rvices | |
| 51 | * The serv ices to se t. | |
| 52 | * / | |
| 53 | pu blic void setService s(ArrayLis t services ) { | |
| 54 | this .services = services ; | |
| 55 | } | |
| 56 | ||
| 57 | /* * | |
| 58 | * @see org. springfram ework.bean s.factory. Initializi ngBean#aft erProperti esSet() | |
| 59 | * / | |
| 60 | pu blic void afterPrope rtiesSet() throws Ex ception { | |
| 61 | supe r.afterPro pertiesSet (); | |
| 62 | Asse rt.notNull (getServic es(), "Mis sing a req uired list of servic es to be e xecuted"); | |
| 63 | exec ute(); | |
| 64 | } | |
| 65 | ||
| 66 | /* * | |
| 67 | * Invokes a list of r unnable se rvices in a FIFO ord er | |
| 68 | * / | |
| 69 | pu blic void run() { | |
| 70 | ||
| 71 | for (Iterator i = servic es.iterato r(); i.has Next();) { | |
| 72 | try { | |
| 73 | Object s ervice = i .next(); | |
| 74 | if (serv ice instan ceof Runna ble) { | |
| 75 | ((Runnable ) service) .run(); | |
| 76 | } | |
| 77 | } catc h (Excepti on e) { | |
| 78 | logger.d ebug("Exce ption in r unning a s ervice ", e); | |
| 79 | } | |
| 80 | } | |
| 81 | } | |
| 82 | ||
| 83 | /* * | |
| 84 | * Delegates to a deri ved class to impleme nt how a c ollection of a runna ble | |
| 85 | * tasks is invoked. | |
| 86 | * | |
| 87 | * @throws S erviceExce ption | |
| 88 | * Thrown if failed to execute . | |
| 89 | * / | |
| 90 | pr otected ab stract voi d execute( ) throws S erviceExce ption; | |
| 91 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.