org.mvel2.integration
Class ResolverTools

java.lang.Object
  extended by 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

Constructor Summary
ResolverTools()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverTools

public ResolverTools()
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.

Parameters:
root - The root factory
newFactory - 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 factory
newFactory - The new factory
Returns:
An instance of the new factory.


Copyright © 2011. All Rights Reserved.