Package org.mvel2.integration
Class ResolverTools
- java.lang.Object
-
- org.mvel2.integration.ResolverTools
-
public class ResolverTools extends java.lang.Object
A set of tools for dealing with factorys, specifically to make chaining issues easy to deal with.
-
-
Constructor Summary
Constructors Constructor Description ResolverTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends VariableResolverFactory>
TappendFactory(VariableResolverFactory root, T newFactory)
Based on a root factory, append the new factory to the end of the chain.static <T extends VariableResolverFactory>
TinsertFactory(VariableResolverFactory root, T newFactory)
Based on the root factory, insert the new factory right after the root, and before any other in the chain.
-
-
-
Method Detail
-
appendFactory
public static <T extends VariableResolverFactory> T appendFactory(VariableResolverFactory root, T newFactory)
Based on a root factory, append the new factory to the end of the chain.- Type Parameters:
T
- type- Parameters:
root
- The root factorynewFactory
- The new factory- Returns:
- An instance of the new factory
-
insertFactory
public static <T extends VariableResolverFactory> T insertFactory(VariableResolverFactory root, T newFactory)
Based on the root factory, insert the new factory right after the root, and before any other in the chain.- Type Parameters:
T
- type- Parameters:
root
- The root factorynewFactory
- The new factory- Returns:
- An instance of the new factory.
-
-