net.sf.crispy.properties
Class ClassPropertiesLoader

java.lang.Object
  extended bynet.sf.crispy.properties.ClassPropertiesLoader
All Implemented Interfaces:
PropertiesLoader

public class ClassPropertiesLoader
extends java.lang.Object
implements PropertiesLoader

Load file where the class is find. Example: class is: test.crispy.Run the file is in the same directory /test/crispy/example.properties use internal: clazz.getResourceAsStream(fileName);

Author:
Linke

Constructor Summary
ClassPropertiesLoader(java.lang.Class pvClass, java.lang.String pvFileName)
           
 
Method Summary
 java.util.Properties load()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPropertiesLoader

public ClassPropertiesLoader(java.lang.Class pvClass,
                             java.lang.String pvFileName)
Method Detail

load

public java.util.Properties load()
Specified by:
load in interface PropertiesLoader


Copyright © 2005-2006 Crispy. All Rights Reserved.