Skip to content

Commit

Permalink
Merge pull request #254 from cmikeb1/master
Browse files Browse the repository at this point in the history
Added the ability to wire the JPA conformance providers
  • Loading branch information
jamesagnew committed Nov 15, 2015
2 parents 8e24077 + 3ff6822 commit c516050
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public JpaConformanceProviderDstu1(RestfulServer theRestfulServer, IFhirSystemDa
super.setCache(false);
}

public JpaConformanceProviderDstu1(){
super();
super.setCache(false);
}

@Override
public Conformance getServerConformance(HttpServletRequest theRequest) {
Conformance retVal = myCachedValue;
Expand Down Expand Up @@ -95,6 +100,16 @@ public Conformance getServerConformance(HttpServletRequest theRequest) {
return retVal;
}

@Override
public void setRestfulServer(RestfulServer theRestfulServer) {
this.myRestfulServer = theRestfulServer;
super.setRestfulServer(theRestfulServer);
}

public void setMySystemDao(IFhirSystemDao<List<IResource>> mySystemDao) {
this.mySystemDao = mySystemDao;
}

public void setImplementationDescription(String theImplDesc) {
myImplementationDescription = theImplDesc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public JpaConformanceProviderDstu2(RestfulServer theRestfulServer, IFhirSystemDa
super.setCache(false);
}

public JpaConformanceProviderDstu2(){
super();
super.setCache(false);
}

@Override
public Conformance getServerConformance(HttpServletRequest theRequest) {
Conformance retVal = myCachedValue;
Expand Down Expand Up @@ -105,8 +110,21 @@ public Conformance getServerConformance(HttpServletRequest theRequest) {
return retVal;
}

@Override
public void setRestfulServer(RestfulServer theRestfulServer) {
this.myRestfulServer = theRestfulServer;
super.setRestfulServer(theRestfulServer);
}

public void setMyDaoConfig(DaoConfig myDaoConfig) {
this.myDaoConfig = myDaoConfig;
}

public void setMySystemDao(IFhirSystemDao<Bundle> mySystemDao) {
this.mySystemDao = mySystemDao;
}

public void setImplementationDescription(String theImplDesc) {
myImplementationDescription = theImplDesc;
}

}

0 comments on commit c516050

Please sign in to comment.