org.apache.wicket.resource
Class PropertiesFactory.AbstractPropertiesLoader

java.lang.Object
  extended by org.apache.wicket.resource.PropertiesFactory.AbstractPropertiesLoader
All Implemented Interfaces:
PropertiesFactory.IPropertiesLoader
Direct Known Subclasses:
PropertiesFactory.PropertiesFilePropertiesLoader, PropertiesFactory.XmlFilePropertiesLoader
Enclosing class:
PropertiesFactory

public abstract class PropertiesFactory.AbstractPropertiesLoader
extends java.lang.Object
implements PropertiesFactory.IPropertiesLoader


Constructor Summary
PropertiesFactory.AbstractPropertiesLoader()
          Construct.
 
Method Summary
protected abstract  java.lang.String getFileExtension()
           
 Properties load(java.lang.Class<?> clazz, java.lang.String path)
           
protected abstract  java.util.Properties loadProperties(java.io.BufferedInputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesFactory.AbstractPropertiesLoader

public PropertiesFactory.AbstractPropertiesLoader()
Construct.

Method Detail

getFileExtension

protected abstract java.lang.String getFileExtension()
Returns:
File extension

loadProperties

protected abstract java.util.Properties loadProperties(java.io.BufferedInputStream in)
                                                throws java.io.IOException
Parameters:
in -
Returns:
java.util.Properties
Throws:
java.io.IOException

load

public Properties load(java.lang.Class<?> clazz,
                       java.lang.String path)
Specified by:
load in interface PropertiesFactory.IPropertiesLoader
Returns:
Properties
See Also:
PropertiesFactory.IPropertiesLoader.load(java.lang.Class, java.lang.String)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.