public class PropertiesAssistant extends AddOnModule implements ReloadableFile
ReloadableFile
Unlike most manager classes in Izou, the PropertiesManager is included in every AddOn instance
| Constructor and Description |
|---|
PropertiesAssistant(Context context,
String addOnID) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPropertiesPath()
Gets the path to default properties file path (the file which is copied into the real properties on start)
|
EventPropertiesAssistant |
getEventPropertiesAssistant()
Gets the EventPropertiesAssistant
|
Properties |
getProperties()
Gets the properties object
|
File |
getPropertiesFile()
Gets the path to properties file (the real properties file - as opposed to the
defaultProperties.txt file) |
String |
getPropertiesPath()
Gets the path to properties file (the real properties file - as opposed to the
defaultProperties.txt file) |
String |
getProperty(String key)
Searches for the property with the specified key in this property list.
|
void |
initProperties()
Initializes properties in the addOn.
|
void |
registerUpdateListener(java.util.function.Consumer<PropertiesAssistant> listener)
the listener will always be called, when the Properties-file changes.
|
void |
reloadFile(String eventType) |
void |
setProperty(String key,
String value)
Calls the HashTable method put.
|
getContext, getIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, isOwnerdebug, debug, error, error, fatal, fatal, warn, warnexceptionThrownpublic PropertiesAssistant(Context context, String addOnID)
public EventPropertiesAssistant getEventPropertiesAssistant()
public String getProperty(String key)
key - the property key.public Properties getProperties()
public void setProperty(String key, String value)
key - the key to be placed into this property list.value - the value corresponding to key.public String getPropertiesPath()
defaultProperties.txt file)public File getPropertiesFile()
defaultProperties.txt file)public void registerUpdateListener(java.util.function.Consumer<PropertiesAssistant> listener)
listener - the listenerpublic String getDefaultPropertiesPath()
public void initProperties()
public void reloadFile(String eventType)
reloadFile in interface ReloadableFileCopyright © 2016. All rights reserved.