net.craftforge.commons.configuration
Class PropertiesLoader

java.lang.Object
  extended by net.craftforge.commons.configuration.PropertiesLoader

public class PropertiesLoader
extends Object

A properties loader provides a cached version of a properties file.

Since:
30.08.11
Author:
Christian Bick

Method Summary
static Properties loadProperties(String resource)
          Loads properties from a property resource via the class loader of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadProperties

public static Properties loadProperties(String resource)
Loads properties from a property resource via the class loader of this class. A copy of the same properties resource is returned for each resource. Caches loaded properties.

Parameters:
resource - The properties resource
Returns:
The properties copy


Copyright © 2011. All Rights Reserved.