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:
parent
65c4250ed3
commit
3ff6822599
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue