Package org.mvel2.integration
Class ResolverTools
java.lang.Object
org.mvel2.integration.ResolverTools
A set of tools for dealing with factorys, specifically to make chaining issues easy to deal with.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
ResolverTools
public ResolverTools()
-
-
Method Details
-
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.
-