All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.configuration.io.PropertyReplacer Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.configuration.io;

import java.util.Properties;

import org.infinispan.commons.util.StringPropertyReplacer;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 12.1
 **/
public interface PropertyReplacer {
   PropertyReplacer DEFAULT = new Default();

   String replaceProperties(final String string, final Properties props);

   class Default implements PropertyReplacer {
      private Default() {
      }

      @Override
      public String replaceProperties(String string, Properties props) {
         return StringPropertyReplacer.replaceProperties(string, props);
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy