Added the ability to wire JpaConformanceProviderDstu1 & JpaConformanceProviderDstu1 with spring, as accommodated by [RestfulServer.java](d3685e72ba/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServer.java (L1313))

This commit is contained in:
C. Mike Bylund 2015-11-06 21:20:06 -07:00
parent 65c4250ed3
commit 3ff6822599
2 changed files with 34 additions and 1 deletions

View File

@ -56,6 +56,11 @@ public class JpaConformanceProviderDstu1 extends ServerConformanceProvider {
super.setCache(false);
}
public JpaConformanceProviderDstu1(){
super();
super.setCache(false);
}
@Override
public Conformance getServerConformance(HttpServletRequest theRequest) {
Conformance retVal = myCachedValue;
@ -95,6 +100,16 @@ public class JpaConformanceProviderDstu1 extends ServerConformanceProvider {
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;
}

View File

@ -60,6 +60,11 @@ public class JpaConformanceProviderDstu2 extends ServerConformanceProvider {
super.setCache(false);
}
public JpaConformanceProviderDstu2(){
super();
super.setCache(false);
}
@Override
public Conformance getServerConformance(HttpServletRequest theRequest) {
Conformance retVal = myCachedValue;
@ -105,8 +110,21 @@ public class JpaConformanceProviderDstu2 extends ServerConformanceProvider {
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;
}
}