Class PropertiesExpander

  • All Implemented Interfaces:
    PropertyResolver

    public final class PropertiesExpander
    extends java.lang.Object
    implements PropertyResolver
    Resolves external properties from an underlying Properties object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesExpander​(java.util.Properties properties)
      Creates a new PropertiesExpander.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String resolve​(java.lang.String name)
      Resolves a property name to it's value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertiesExpander

        public PropertiesExpander​(java.util.Properties properties)
        Creates a new PropertiesExpander.
        Parameters:
        properties - the underlying properties to use for property resolution.
        Throws:
        java.lang.IllegalArgumentException - when properties argument is null
    • Method Detail

      • resolve

        public java.lang.String resolve​(java.lang.String name)
        Description copied from interface: PropertyResolver
        Resolves a property name to it's value.
        Specified by:
        resolve in interface PropertyResolver
        Parameters:
        name - the name of the property.
        Returns:
        the value that is associated with propertyName.