public class Configuration extends Object
| Constructor and Description |
|---|
Configuration() |
Configuration(File propertyFile) |
Configuration(File propertyFile,
Map<String,String> placeholders) |
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
getInstance() |
Map<String,String> |
getPlaceholders() |
String |
getProperty(String name) |
String |
getProperty(String name,
String defaultValue) |
boolean |
getPropertyAsBoolean(String name) |
boolean |
getPropertyAsBoolean(String name,
boolean defaultValue) |
Integer |
getPropertyAsInteger(String name) |
Integer |
getPropertyAsInteger(String name,
Integer defaultValue) |
Long |
getPropertyAsLong(String name,
Long defaultValue) |
File |
getPropertyFile() |
boolean |
hasProperty(String name) |
void |
load() |
Object |
put(Object arg0,
Object arg1) |
void |
putProperty(String name,
String value) |
static void |
setInstance(Configuration instance) |
public Configuration()
public Configuration(File propertyFile)
public void load()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionpublic static void setInstance(Configuration instance)
public static Configuration getInstance()
public boolean getPropertyAsBoolean(String name)
public boolean hasProperty(String name)
public boolean getPropertyAsBoolean(String name, boolean defaultValue)
public File getPropertyFile()
Copyright © 2019. All rights reserved.