Package com.aquima.interactions.matching
Class LinkedMatchTypeFactory
java.lang.Object
com.aquima.interactions.matching.LinkedMatchTypeFactory
- All Implemented Interfaces:
IMatchTypeFactory
Match function factory that combines two match function factories.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMatchTypeFactory
createFor
(IMatchTypeFactory factory, IMatchTypeFactory defaultFactory) This method returns a match function factory implementation that combines both the match function factories that are passed to this method.getMatchFunction
(String typeName, String name, IMatchFunctionParameters parameters) This method constructs a match function for a specific match type definition with the specified name and parameters.
-
Method Details
-
createFor
public static IMatchTypeFactory createFor(IMatchTypeFactory factory, IMatchTypeFactory defaultFactory) This method returns a match function factory implementation that combines both the match function factories that are passed to this method.- Parameters:
factory
- The match function factory that should be used first when requesting a match function (optional).defaultFactory
- The match function factory that should be used when the first did not supply a match function implementation (mandatory).- Returns:
- a match function factory implementation that combines both the match function factories that are passed to this method.
-
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.
-