In the Projects window, expand the Configuration node in the project you want to modify, and then double-click the Best Record file.
The file opens in the NetBeans XML editor.
Scroll to the candidate-definitions element in the SurvivorHelperConfig element.
In the candidate-field element for which you want to specify a new strategy, create a new survivor-strategy element.
For example:
<candidate-field name="Person.Alias[*].*"> <survivor-strategy> </survivor-strategy> </candidate-field> |
In the new survivor-strategy element, create and name a new strategy-class element.
Make sure to specify the fully qualified name of the Java class for the strategy. For example:
<candidate-field name="Person.Alias[*].*"> <survivor-strategy> <strategy-class> com.stc.eindex.survivor.impl.UnionSurvivorStrategy </strategy-class> </survivor-strategy> </candidate-field> |
To specify the default survivor strategy for a field, make sure the corresponding candidate-field element does not contain a survivor-strategy element. If you implement a custom strategy class, that class must be defined as a custom plug-in.
Save and close the file.