org.ow2.util.substitution.resolver
Class FallbackResolver

java.lang.Object
  extended by org.ow2.util.substitution.resolver.FallbackResolver
All Implemented Interfaces:
IPropertyResolver

public class FallbackResolver
extends Object
implements IPropertyResolver

A FallbackResolver is a resolver, usually placed at the end of a chain of resolver and that will provide a default value for any given expression. This permits to have a little less strict resolution process (the substitution engine throwing exceptions if the resolver cannot give a non-null value)

Author:
Guillaume Sauthier

Constructor Summary
FallbackResolver()
           
 
Method Summary
 String resolve(String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FallbackResolver

public FallbackResolver()
Method Detail

resolve

public String resolve(String expression)
Specified by:
resolve in interface IPropertyResolver
Parameters:
expression - a property name
Returns:
the value related to the expression, or null if not found.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.