Package com.myscript.iink
Class Configuration
- java.lang.Object
-
- com.myscript.iink.ParameterSet
-
- com.myscript.iink.Configuration
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Configuration extends ParameterSet
Represents the configuration values of the iink runtime environment.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(@NotNull IConfigurationListener listener)
Adds the specified listener to this configuration.void
removeListener(@NotNull IConfigurationListener listener)
Removes the specified listener from this configuration.-
Methods inherited from class com.myscript.iink.ParameterSet
checkNotClosed, close, finalize, getBoolean, getBoolean, getNumber, getNumber, getSection, getString, getString, getStringArray, getStringArray, inject, isClosed, setBoolean, setNumber, setString, setStringArray
-
-
-
-
Method Detail
-
addListener
public final void addListener(@NotNull @NotNull IConfigurationListener listener)
Adds the specified listener to this configuration.- Parameters:
listener
- the listener to be added.- Throws:
java.lang.IllegalStateException
- when this configuration is closed.java.lang.IllegalArgumentException
- whenlistener
is null.
-
removeListener
public final void removeListener(@NotNull @NotNull IConfigurationListener listener)
Removes the specified listener from this configuration.- Parameters:
listener
- the listener to be removed.- Throws:
java.lang.IllegalStateException
- when this configuration is closed.java.lang.IllegalArgumentException
- whenlistener
is null.
-
-