org.mvel2.integration
Class ResolverTools
java.lang.Object
org.mvel2.integration.ResolverTools
public class ResolverTools
- extends Object
A set of tools for dealing with factorys, specifically to make chaining issues easy to deal with.
- Author:
- Christopher Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolverTools
public ResolverTools()
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.
- 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.
- Parameters:
root
- The root factorynewFactory
- The new factory
- Returns:
- An instance of the new factory.
Copyright © 2011. All Rights Reserved.