org.ow2.util.xmlconfig.properties
Class PropertyResolverHelper

java.lang.Object
  extended by org.ow2.util.xmlconfig.properties.PropertyResolverHelper

public class PropertyResolverHelper
extends java.lang.Object

Helper to resolve properties.

Author:
Loris Bouzonnet

Constructor Summary
PropertyResolverHelper()
           
 
Method Summary
static java.lang.String resolve(IPropertyResolver propertyResolver, java.lang.String propertyValue)
          Resolve a property with a given instance of IPropertyResolver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResolverHelper

public PropertyResolverHelper()
Method Detail

resolve

public static java.lang.String resolve(IPropertyResolver propertyResolver,
                                       java.lang.String propertyValue)
                                throws java.lang.IllegalArgumentException
Resolve a property with a given instance of IPropertyResolver. A property is resolved in two steps: Firstly, the property is parsed to build the corresponding Property. Secondly, the property is compiled to a String.

Parameters:
propertyResolver - an instance IPropertyResolver
propertyValue - a property to resolve
Returns:
the resolved property
Throws:
java.lang.IllegalArgumentException - if the given property cannot be resolved


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