org.sonatype.sisu.goodies.common
Class PropertiesLoader

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.PropertiesLoader

public class PropertiesLoader
extends Object

Support for loading resource-based properties file.

Since:
1.0

Constructor Summary
PropertiesLoader(Class owner, String resourceName)
           
PropertiesLoader(Object owner, String resourceName)
           
 
Method Summary
 Properties getProperties()
           
 URL getResource()
           
 String getResourceName()
           
 String getValue(String name)
           
 String getValue(String name, String defaultValue)
           
 PropertiesLoader load()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesLoader

public PropertiesLoader(Class owner,
                        String resourceName)

PropertiesLoader

public PropertiesLoader(Object owner,
                        String resourceName)
Method Detail

getProperties

public Properties getProperties()

getResourceName

public String getResourceName()

load

public PropertiesLoader load()

getResource

public URL getResource()

getValue

public String getValue(String name,
                       String defaultValue)

getValue

public String getValue(String name)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.