Extending the match operation factory class
The match operation factory class, MatchOperationFactory, is an abstract
base class that provides a static method to get match operation factory
by name: getFactoryByName(String). You must create a class that extends gw.rating.rtm.matchop.MatchOperationFactory.
For an example, see gw.rating.rtm.matchop.LessThanOrEqualMatchOpFactory.gs.
Your new match operation factory implementation must implement at least the following two methods.
Method That Creates a Stateless Match Operator
This method signature is:
function createStatelessMatchOperator(entity.RateTableMatchOp): <S extends StatelessMatchOperator> This method must create and return a new instance of the match operation implementation class as described in Match operation implementation.
Method That Creates a Validator
This method signature is:
function createValidator():MatchOpValidator This method must create and return a new instance of the match operation validator class as described in Match operation validator.
