Produced by Araxis Merge on 9/15/2018 10:47:50 PM 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 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_integration\mhv-integration-phr\mhv-integration-phrmgr-api\src\main\java\gov\va\med\mhv\integration\phr\service | PojoPhrServiceLocator.java | Thu Aug 23 21:20:24 2018 UTC |
| 2 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_integration\mhv-integration-phr\mhv-integration-phrmgr-api\src\main\java\gov\va\med\mhv\integration\phr\service | PojoPhrServiceLocator.java | Sat Sep 15 21:26:32 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 110 |
| 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 | * | |
| 3 | */ | |
| 4 | package go v.va.med.m hv.integra tion.phr.s ervice; | |
| 5 | ||
| 6 | import gov .va.med.mh v.integrat ion.phr.tr ansfer.Que ryRequest; | |
| 7 | ||
| 8 | import jav a.util.Map ; | |
| 9 | ||
| 10 | /** | |
| 11 | * @author DNS | |
| 12 | * | |
| 13 | */ | |
| 14 | public cla ss PojoPhr ServiceLoc ator<T ext ends PhrSe rvice, N e xtends Que ryRequest> implement s ServiceL ocator<T,N > { | |
| 15 | ||
| 16 | pr otected Ma p<String, T> service Map; | |
| 17 | ||
| 18 | @O verride | |
| 19 | pu blic T loc ateService (N service Qualifier) | |
| 20 | throws ServiceLo catorExcep tion { | |
| 21 | ||
| 22 | if(t his.servic eMap == nu ll) | |
| 23 | { | |
| 24 | throw new Servic eLocatorEx ception("U nitialized service l ocator exc eption."); | |
| 25 | } | |
| 26 | ||
| 27 | T se rvice = ge tService(g etServiceI d(serviceQ ualifier.g etIcn(), s erviceQual ifier.getE xtractType ())); | |
| 28 | ||
| 29 | if(s ervice == null) | |
| 30 | { | |
| 31 | throw new Servic eLocatorEx ception(St ring.forma t("Service unavailab le excepti on. Servic e name: %s ", service Qualifier) ); | |
| 32 | } | |
| 33 | ||
| 34 | retu rn service ; | |
| 35 | } | |
| 36 | ||
| 37 | @O verride | |
| 38 | pu blic Strin g getServi ceId(Strin g userid, String ser viceType) | |
| 39 | throws ServiceLo catorExcep tion { | |
| 40 | retu rn service Type; | |
| 41 | } | |
| 42 | ||
| 43 | pr otected T getService (String se rviceId) | |
| 44 | { | |
| 45 | retu rn this.se rviceMap.g et(service Id); | |
| 46 | } | |
| 47 | ||
| 48 | /* * | |
| 49 | * | |
| 50 | * @param se rviceMap | |
| 51 | * / | |
| 52 | pu blic void setService Map(Map<St ring, T> s erviceMap) { | |
| 53 | this .serviceMa p = servic eMap; | |
| 54 | } | |
| 55 | ||
| 56 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.