public class ConfigurationChangeEvent
extends java.lang.Object
Configuration
has changed through Configuration.put(String, String)
or Configuration.putAll(java.util.Map)
.ConfigurationManager.getCurrent()
)Modifier and Type | Field and Description |
---|---|
static int |
TYPE_CHANGE
Type specifying that the currently configuration has been changed to a different configuration than before, via
ConfigurationManager.setCurrent(Configuration) |
static int |
TYPE_CLEAR
Type specifying that a configuration has been cleared via
Configuration.clear() |
static int |
TYPE_COPY
Type specifying that a configuration has been copied via
ConfigurationManager.copy(int, String, int, String) |
static int |
TYPE_CREATE
Type specifying that a new configuration has been created via
ConfigurationManager.create(int, String) |
static int |
TYPE_DELETE
Type specifying that a configuration has been deleted via
ConfigurationManager.delete(int, String) |
static int |
TYPE_IMPORT
Type specifying that a configuration has been imported via
ConfigurationManager.importFromStream(int, String, java.io.InputStream) . |
static int |
TYPE_MODIFY
Type specifying that a configuration has been modified, e.g. via
Configuration.put(String, String) . |
Modifier and Type | Method and Description |
---|---|
Configuration |
getChangedConfiguration()
Returns the configuration which was changed (or the new current configuration).
|
java.lang.String |
getChangedConfigurationName()
Returns the name of the configuration which was changed (or the name of the new current configuration).
|
int |
getChangedConfigurationScope()
Returns the scope of the configuration which was changed (or the scope of the new current configuration).
|
int |
getType()
Returns the event type which specifies exactly which change occurred with the given configuration.
|
boolean |
isCurrentConfiguration()
Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.
|
public static final int TYPE_CHANGE
ConfigurationManager.setCurrent(Configuration)
public static final int TYPE_CREATE
ConfigurationManager.create(int, String)
public static final int TYPE_MODIFY
Configuration.put(String, String)
.public static final int TYPE_DELETE
ConfigurationManager.delete(int, String)
public static final int TYPE_IMPORT
ConfigurationManager.importFromStream(int, String, java.io.InputStream)
.public static final int TYPE_COPY
ConfigurationManager.copy(int, String, int, String)
public static final int TYPE_CLEAR
Configuration.clear()
public Configuration getChangedConfiguration()
ConfigurationManager.get(int, String)
public java.lang.String getChangedConfigurationName()
ConfigurationManager.get(int, String)
public int getChangedConfigurationScope()
Configuration.SCOPE_SYSTEM
,
Configuration.SCOPE_USER
,
Configuration.SCOPE_TEMP
,
ConfigurationManager.get(int, String)
public boolean isCurrentConfiguration()
ConfigurationManager.getCurrent()
public int getType()
TYPE_CHANGE
,
TYPE_CLEAR
,
TYPE_COPY
,
TYPE_CREATE
,
TYPE_DELETE
,
TYPE_IMPORT
,
TYPE_MODIFY
Copyright © 1999-2020 by i-net software GmbH