Package com.inet.config
Class ConfigurationChangeEvent
java.lang.Object
com.inet.config.ConfigurationChangeEvent
This event is fired, if:
- A
Configuration
has changed throughConfiguration.put(String, String)
orConfiguration.putAll(java.util.Map)
. - The "current" configuration used by the application has changed. (see
ConfigurationManager.getCurrent()
)
- Since:
- inetcore 1.0 (package changed in 14.0)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Type specifying that the currently configuration has been changed to a different configuration than before, viaConfigurationManager.setCurrent(Configuration)
static final int
Type specifying that a configuration has been cleared viaConfiguration.clear()
static final int
Type specifying that a configuration has been copied viaConfigurationManager.copy(int, String, int, String)
static final int
Type specifying that a new configuration has been created viaConfigurationManager.create(int, String)
static final int
Type specifying that a configuration has been deleted viaConfigurationManager.delete(int, String)
static final int
Type specifying that a configuration has been imported viaConfigurationManager.importFromStream(int, String, java.io.InputStream)
.static final int
Type specifying that a configuration has been modified, e.g. viaConfiguration.put(String, String)
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration which was changed (or the new current configuration).Returns the name of the configuration which was changed (or the name of the new current configuration).int
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
Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.
-
Field Details
-
TYPE_CHANGE
public static final int TYPE_CHANGEType specifying that the currently configuration has been changed to a different configuration than before, viaConfigurationManager.setCurrent(Configuration)
- See Also:
-
TYPE_CREATE
public static final int TYPE_CREATEType specifying that a new configuration has been created viaConfigurationManager.create(int, String)
- See Also:
-
TYPE_MODIFY
public static final int TYPE_MODIFYType specifying that a configuration has been modified, e.g. viaConfiguration.put(String, String)
.- See Also:
-
TYPE_DELETE
public static final int TYPE_DELETEType specifying that a configuration has been deleted viaConfigurationManager.delete(int, String)
- See Also:
-
TYPE_IMPORT
public static final int TYPE_IMPORTType specifying that a configuration has been imported viaConfigurationManager.importFromStream(int, String, java.io.InputStream)
.- See Also:
-
TYPE_COPY
public static final int TYPE_COPYType specifying that a configuration has been copied viaConfigurationManager.copy(int, String, int, String)
- See Also:
-
TYPE_CLEAR
public static final int TYPE_CLEARType specifying that a configuration has been cleared viaConfiguration.clear()
- See Also:
-
-
Method Details
-
getChangedConfiguration
Returns the configuration which was changed (or the new current configuration).- Returns:
- the configuration which was changed (or new current configuration). Never null.
- Since:
- inetcore 2.2
- See Also:
-
getChangedConfigurationName
Returns the name of the configuration which was changed (or the name of the new current configuration).- Returns:
- name of the configuration which was changed (or the name of the new current configuration). Never null.
- Since:
- inetcore 1.0
- See Also:
-
getChangedConfigurationScope
public int getChangedConfigurationScope()Returns the scope of the configuration which was changed (or the scope of the new current configuration).- Returns:
- the scope of the configuration which was changed (or the scope of the new current configuration)
- Since:
- inetcore 1.0
- See Also:
-
isCurrentConfiguration
public boolean isCurrentConfiguration()Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.- Returns:
- true if the configuration was the "current" configuration at the time this event was created, false otherwise.
- Since:
- inetcore 1.0
- See Also:
-
getType
public int getType()Returns the event type which specifies exactly which change occurred with the given configuration. See the descriptions of the TYPE constants for more information.- Returns:
- type of configuration change event
- Since:
- inetcore 1.0
- See Also:
-