net.sf.ehcache.util

Class PropertyUtil

public final class PropertyUtil extends Object

Property utilities.

Version: $Id: PropertyUtil.java 52 2006-04-24 14:50:03Z gregluck $

Author: Greg Luck

Method Summary
static StringextractAndLogProperty(String name, Properties properties)
static PropertiesparseProperties(String propertiesString)
Parse properties supplied as a comma separated list into a Properties object

Method Detail

extractAndLogProperty

public static String extractAndLogProperty(String name, Properties properties)

Returns: null if their is no property for the key, or their are no properties

parseProperties

public static Properties parseProperties(String propertiesString)
Parse properties supplied as a comma separated list into a Properties object

Parameters: propertiesString a comma separated list such as "propertyA=s, propertyB=t"

Returns: a newly constructed properties object