Step 2: Add a Binding to the New Reciprocal Evidence Conversion Implementation

Guice bindings are used to register the implementation.

  
public class SampleModule extends AbstractModule {

  public void configure() {      

    MapBinder<CASEEVIDENCEEntry, ReciprocalEvidenceConversion> recEvidenceConversionMapBinder = 
      MapBinder.newMapBinder(binder(), CASEEVIDENCEEntry.class, ReciprocalEvidenceConversion.class);
 
    reciprocalEvidenceConversionMapBinder.addBinding(
	  CASEEVIDENCEEntry.get("WORKINGRELATIONSHIP")).to(
      SampleWorkingRelationshipReciprocalConversion.class);
  }
}
Note: New Guice modules must be registered by adding a row to the ModuleClassName database table. Please see the Persistence Cookbook for more information.