Class MatchTypeFactoryTemplate
java.lang.Object
com.aquima.interactions.test.templates.resource.MatchTypeFactoryTemplate
This template allows for registering match type factories which can be used in testcases.
- Since:
- 6.2
- Author:
- F. van der Meer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMatchFunctionFactory
(com.aquima.interactions.matching.IMatchFunctionFactory factory) This method adds a match function factory to the match type factory template.protected com.aquima.interactions.matching.IMatchFunction
getMatchFunction
(String typeName, String name, com.aquima.interactions.matching.IMatchFunctionParameters parameters) protected com.aquima.interactions.matching.IMatchFunctionFactory
getMatchFunctionFactory
(String typeName) com.aquima.interactions.matching.IMatchTypeFactory
Creates the match type factory for this template, containing the custom added factories.
-
Constructor Details
-
MatchTypeFactoryTemplate
public MatchTypeFactoryTemplate()
-
-
Method Details
-
toFactory
public com.aquima.interactions.matching.IMatchTypeFactory toFactory()Creates the match type factory for this template, containing the custom added factories.- Returns:
- The match type factory which is never null.
-
addMatchFunctionFactory
public void addMatchFunctionFactory(com.aquima.interactions.matching.IMatchFunctionFactory factory) This method adds a match function factory to the match type factory template. The added match function factory's type name is mandatory.- Parameters:
factory
- The match function factory to add.
-
getMatchFunctionFactory
protected com.aquima.interactions.matching.IMatchFunctionFactory getMatchFunctionFactory(String typeName) -
getMatchFunction
-