Class MatchTypeFactory
java.lang.Object
com.aquima.interactions.matching.impl.functions.MatchTypeFactory
- All Implemented Interfaces:
IMatchTypeFactory
- Direct Known Subclasses:
DefaultMatchTypeFactory
Match type factory implementation that can be initialized with a list of IMatchFunctionFactory implementations.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionMatchTypeFactory
(Collection<IMatchFunctionFactory> factories) Constructs the type factory from a list of match function factories. -
Method Summary
Modifier and TypeMethodDescriptiongetMatchFunction
(String typeName, String name, IMatchFunctionParameters parameters) This method constructs a match function for a specific match type definition with the specified name and parameters.protected IMatchFunctionFactory
getMatchFunctionFactory
(String typeName)
-
Constructor Details
-
MatchTypeFactory
Constructs the type factory from a list of match function factories.- Parameters:
factories
- List containing implementations of the IMatchFunctionFactory interface.
-
-
Method Details
-
getMatchFunctionFactory
-
getMatchFunction
public IMatchFunction getMatchFunction(String typeName, String name, IMatchFunctionParameters parameters) Description copied from interface:IMatchTypeFactory
This method constructs a match function for a specific match type definition with the specified name and parameters. After construction of this function the object is expected to be reentrant. When a match function could not be created the factory should throw an exception, when the match function could not be found a null pointer should be returned.- Specified by:
getMatchFunction
in interfaceIMatchTypeFactory
- Parameters:
typeName
- The type name of the match function.name
- The name of the user created match function.parameters
- The parameters which can be used to initialize a match function with specific settings.- Returns:
- A match function implementation object. If the match function was unknown null can be returned.
-