Produced by Araxis Merge on 11/14/2017 6:57:20 AM Central Standard 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 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\quartz | AutowiringSpringBeanJobFactory.java | Thu Nov 9 14:19:42 2017 UTC |
| 2 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\quartz | AutowiringSpringBeanJobFactory.java | Tue Nov 14 12:27:06 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 68 |
| 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 | package go v.va.cpss. quartz; | |
| 2 | ||
| 3 | import org .quartz.sp i.TriggerF iredBundle ; | |
| 4 | import org .springfra mework.bea ns.factory .config.Au towireCapa bleBeanFac tory; | |
| 5 | import org .springfra mework.con text.Appli cationCont ext; | |
| 6 | import org .springfra mework.con text.Appli cationCont extAware; | |
| 7 | import org .springfra mework.sch eduling.qu artz.Sprin gBeanJobFa ctory; | |
| 8 | ||
| 9 | /** | |
| 10 | * This cl ass allows the use o f Spring t o inject d ependencie s during Q uartz Job | |
| 11 | * instant iation whe n Quartz J obs are tr iggered an d run via the Quartz | |
| 12 | * Schedul er. | |
| 13 | * | |
| 14 | * The pur pose of in jecting us ing this t echnique i s to allow easier st orage of | |
| 15 | * databas e qrtz_job _details.j ob_data wh en using Q uartz Clus ter config uration. | |
| 16 | * | |
| 17 | * @author DN S BROWNL | |
| 18 | */ | |
| 19 | public cla ss Autowir ingSpringB eanJobFact ory extend s SpringBe anJobFacto ry impleme nts Applic ationConte xtAware { | |
| 20 | ||
| 21 | pr ivate tran sient Auto wireCapabl eBeanFacto ry beanFac tory; | |
| 22 | ||
| 23 | @O verride | |
| 24 | pu blic void setApplica tionContex t(final Ap plicationC ontext con text) { | |
| 25 | bean Factory = context.ge tAutowireC apableBean Factory(); | |
| 26 | } | |
| 27 | ||
| 28 | @O verride | |
| 29 | pu blic Objec t createJo bInstance( final Trig gerFiredBu ndle bundl e) throws Exception { | |
| 30 | fina l Object j ob = super .createJob Instance(b undle); | |
| 31 | bean Factory.au towireBean (job); | |
| 32 | retu rn job; | |
| 33 | } | |
| 34 | ||
| 35 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.