Package org.apache.wicket.resource
Class XmlFilePropertiesLoader
- java.lang.Object
-
- org.apache.wicket.resource.XmlFilePropertiesLoader
-
- All Implemented Interfaces:
IPropertiesLoader
public class XmlFilePropertiesLoader extends Object implements IPropertiesLoader
Load properties from XML file- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description XmlFilePropertiesLoader(String fileExtension)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileExtension()
Properties
loadJavaProperties(InputStream in)
Load the properties into a java.util.Properties objectValueMap
loadWicketProperties(InputStream inputStream)
Load the properties into a ValueMap.
-
-
-
Constructor Detail
-
XmlFilePropertiesLoader
public XmlFilePropertiesLoader(String fileExtension)
Construct.- Parameters:
fileExtension
-
-
-
Method Detail
-
getFileExtension
public final String getFileExtension()
- Specified by:
getFileExtension
in interfaceIPropertiesLoader
- Returns:
- The file extension this loader should be applied to
- See Also:
IPropertiesLoader.getFileExtension()
-
loadJavaProperties
public Properties loadJavaProperties(InputStream in) throws IOException
Description copied from interface:IPropertiesLoader
Load the properties into a java.util.Properties object- Specified by:
loadJavaProperties
in interfaceIPropertiesLoader
- Returns:
- Properties. Null if not applicable or not found or ...
- Throws:
IOException
- See Also:
IPropertiesLoader.loadJavaProperties(java.io.InputStream)
-
loadWicketProperties
public ValueMap loadWicketProperties(InputStream inputStream)
Description copied from interface:IPropertiesLoader
Load the properties into a ValueMap.- Specified by:
loadWicketProperties
in interfaceIPropertiesLoader
- Returns:
- Properties. Null if not applicable or not found or ...
- See Also:
IPropertiesLoader.loadWicketProperties(java.io.InputStream)
-
-