public class PropertiesLoader extends Object
Constructor and Description |
---|
PropertiesLoader(String resourceName,
boolean systemPropertiesOverPropertiesFile,
boolean caching) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
Boolean |
getBoolean(String key,
Boolean defaultValue) |
<T> Class<? extends T> |
getClass(String key,
Class<? extends T> defaultValue) |
InetAddress |
getInetAddress(String key,
InetAddress defaultValue) |
int[] |
getIntArray(String key,
int[] defaultValue) |
Integer |
getInteger(String key,
Integer defaultValue) |
Properties |
getProp() |
String |
getResourceName() |
String |
getString(String key,
String defaultValue) |
boolean |
isCaching() |
boolean |
isSystemPropertiesOverPropertiesFile() |
public PropertiesLoader(String resourceName, boolean systemPropertiesOverPropertiesFile, boolean caching)
resourceName
- resourceNamesystemPropertiesOverPropertiesFile
- systemPropertiesOverPropertiesFilecaching
- cachingpublic final String getResourceName()
public final Properties getProp()
public final boolean isSystemPropertiesOverPropertiesFile()
public final boolean isCaching()
public String getString(String key, String defaultValue)
key
- keydefaultValue
- defaultValuepublic Integer getInteger(String key, Integer defaultValue)
key
- keydefaultValue
- defaultValuepublic Boolean getBoolean(String key, Boolean defaultValue)
key
- keydefaultValue
- defaultValuepublic <T> Class<? extends T> getClass(String key, Class<? extends T> defaultValue)
T
- classkey
- keydefaultValue
- defaultValuepublic InetAddress getInetAddress(String key, InetAddress defaultValue)
key
- keydefaultValue
- defaultValuepublic int[] getIntArray(String key, int[] defaultValue)
key
- keydefaultValue
- defaultValuepublic final void clearCache()
Copyright © 2011–2016 Pcap4J.org. All rights reserved.