Cleanup for #254
This commit is contained in:
parent
c516050716
commit
8c087f053a
|
@ -41,14 +41,27 @@ import ca.uhn.fhir.model.primitive.DecimalDt;
|
|||
import ca.uhn.fhir.rest.server.RestfulServer;
|
||||
import ca.uhn.fhir.rest.server.provider.ServerConformanceProvider;
|
||||
import ca.uhn.fhir.util.ExtensionConstants;
|
||||
import net.sourceforge.cobertura.CoverageIgnore;
|
||||
|
||||
public class JpaConformanceProviderDstu1 extends ServerConformanceProvider {
|
||||
|
||||
private String myImplementationDescription;
|
||||
private IFhirSystemDao<List<IResource>> mySystemDao;
|
||||
private volatile Conformance myCachedValue;
|
||||
private String myImplementationDescription;
|
||||
private RestfulServer myRestfulServer;
|
||||
private IFhirSystemDao<List<IResource>> mySystemDao;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@CoverageIgnore
|
||||
public JpaConformanceProviderDstu1(){
|
||||
super();
|
||||
super.setCache(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public JpaConformanceProviderDstu1(RestfulServer theRestfulServer, IFhirSystemDao<List<IResource>> theSystemDao) {
|
||||
super(theRestfulServer);
|
||||
myRestfulServer = theRestfulServer;
|
||||
|
@ -56,11 +69,6 @@ public class JpaConformanceProviderDstu1 extends ServerConformanceProvider {
|
|||
super.setCache(false);
|
||||
}
|
||||
|
||||
public JpaConformanceProviderDstu1(){
|
||||
super();
|
||||
super.setCache(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Conformance getServerConformance(HttpServletRequest theRequest) {
|
||||
Conformance retVal = myCachedValue;
|
||||
|
@ -100,18 +108,20 @@ public class JpaConformanceProviderDstu1 extends ServerConformanceProvider {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
@CoverageIgnore
|
||||
public void setImplementationDescription(String theImplDesc) {
|
||||
myImplementationDescription = theImplDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRestfulServer(RestfulServer theRestfulServer) {
|
||||
this.myRestfulServer = theRestfulServer;
|
||||
super.setRestfulServer(theRestfulServer);
|
||||
}
|
||||
|
||||
public void setMySystemDao(IFhirSystemDao<List<IResource>> mySystemDao) {
|
||||
@CoverageIgnore
|
||||
public void setSystemDao(IFhirSystemDao<List<IResource>> mySystemDao) {
|
||||
this.mySystemDao = mySystemDao;
|
||||
}
|
||||
|
||||
public void setImplementationDescription(String theImplDesc) {
|
||||
myImplementationDescription = theImplDesc;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -43,15 +43,28 @@ import ca.uhn.fhir.model.primitive.DecimalDt;
|
|||
import ca.uhn.fhir.rest.server.RestfulServer;
|
||||
import ca.uhn.fhir.rest.server.provider.dstu2.ServerConformanceProvider;
|
||||
import ca.uhn.fhir.util.ExtensionConstants;
|
||||
import net.sourceforge.cobertura.CoverageIgnore;
|
||||
|
||||
public class JpaConformanceProviderDstu2 extends ServerConformanceProvider {
|
||||
|
||||
private String myImplementationDescription;
|
||||
private IFhirSystemDao<Bundle> mySystemDao;
|
||||
private volatile Conformance myCachedValue;
|
||||
private RestfulServer myRestfulServer;
|
||||
private DaoConfig myDaoConfig;
|
||||
private String myImplementationDescription;
|
||||
private RestfulServer myRestfulServer;
|
||||
private IFhirSystemDao<Bundle> mySystemDao;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@CoverageIgnore
|
||||
public JpaConformanceProviderDstu2(){
|
||||
super();
|
||||
super.setCache(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public JpaConformanceProviderDstu2(RestfulServer theRestfulServer, IFhirSystemDao<Bundle> theSystemDao, DaoConfig theDaoConfig) {
|
||||
super(theRestfulServer);
|
||||
myRestfulServer = theRestfulServer;
|
||||
|
@ -60,11 +73,6 @@ public class JpaConformanceProviderDstu2 extends ServerConformanceProvider {
|
|||
super.setCache(false);
|
||||
}
|
||||
|
||||
public JpaConformanceProviderDstu2(){
|
||||
super();
|
||||
super.setCache(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Conformance getServerConformance(HttpServletRequest theRequest) {
|
||||
Conformance retVal = myCachedValue;
|
||||
|
@ -110,21 +118,23 @@ public class JpaConformanceProviderDstu2 extends ServerConformanceProvider {
|
|||
return retVal;
|
||||
}
|
||||
|
||||
public void setDaoConfig(DaoConfig myDaoConfig) {
|
||||
this.myDaoConfig = myDaoConfig;
|
||||
}
|
||||
|
||||
@CoverageIgnore
|
||||
public void setImplementationDescription(String theImplDesc) {
|
||||
myImplementationDescription = theImplDesc;
|
||||
}
|
||||
|
||||
@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) {
|
||||
@CoverageIgnore
|
||||
public void setSystemDao(IFhirSystemDao<Bundle> mySystemDao) {
|
||||
this.mySystemDao = mySystemDao;
|
||||
}
|
||||
|
||||
public void setImplementationDescription(String theImplDesc) {
|
||||
myImplementationDescription = theImplDesc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue