Using Registrar

Define the following method in a class:

public void registerEvidence2Compare() throws
	AppException, InformationalException {
	  Evidence2CompareMap map =  EvidenceController.
	  getEvidence2CompareMap();
	  map.putEvidenceType(CASEEVIDENCE.SAMPLEADDRESS,
	  SampleAddressFactory.class);
	}

The class which implements the registrar must be added to the ENV_EVIDENCE2COMPARE_REGISTRARS_LIST environment variable. Out-of-the-box, for example the facade class curam.sample.sl.fact.SampleSportingGrantEvidenceRegistrarFactory, is added to the ENV_EVIDENCE2COMPARE_REGISTRARS_LIST variable. Further additions should be added in a comma delimited fashion, with no space left between the comma and the next addition to the list.