jwidefender
Class JWiDefenderProperties
java.lang.Object
jwidefender.JWiDefenderProperties
public class JWiDefenderProperties
- extends java.lang.Object
A singleton for accessing properties.
JWiDefender.properties should be in the current working directory.
At a minimum, it must include the following properties:
SecondsBetweenKeyDetection: Integer
It may also contain plugin properties:
Plugin.#: class of plugin
ON.Plugin.#: true/false for turning on the plugin.
this translates to on/off for the console app and
checked/unchecked for the tray icon app
Ex: jwidefender.plugin.NotifyPlugin
true
It can also contain plugin specific properties which can then be
accessed by getProperty(String).
- Author:
- ahandel
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static JWiDefenderProperties getInstance()
getSeconds
public int getSeconds()
- Returns:
- the number of seconds between key detection
getPluginClassNames
public java.util.Set<java.lang.String> getPluginClassNames(boolean on)
- Parameters:
on - true - get plugins that are on; false - get plugins that are off
- Returns:
- class names of plugins
setProperty
public void setProperty(java.lang.String key,
java.lang.String value)
- Parameters:
key - of property to setvalue - of property to set
getProperty
public java.lang.String getProperty(java.lang.String key)
- Parameters:
key - of property to get
- Returns:
- value of property with key