public class PropertiesLoaderUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
PropertiesLoaderUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
clearCache() |
Clear the method cache.
|
static java.util.Properties |
loadProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader) |
Load all properties from the specified class path resource
(in ISO-8859-1 encoding), using the given class loader.
|
static void |
setCacheEnabled(boolean cacheEnabling) |
Set whether methods should be cached for greater performance or not,
default is
true. |
public static java.util.Properties loadProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
throws java.io.IOException
Merges properties if more than one resource of the same name found in the class path.
resourceName - the name of the class path resourceclassLoader - the class loaderjava.io.IOException - if loading failedpublic static void setCacheEnabled(boolean cacheEnabling)
true.cacheEnabling - true if methods should be
cached for greater performance, otherwise falsepublic static int clearCache()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.