Klasse ConfigurationChangeEvent
java.lang.Object
com.inet.config.ConfigurationChangeEvent
- Bekannte direkte Unterklassen:
ConfigurationModificationEvent
This event is fired, if:
- A
Configurationhas changed throughConfiguration.put(String, String)orConfiguration.putAll(java.util.Map). - The "current" configuration used by the application has changed. (see
ConfigurationManager.getCurrent())
- Seit:
- inetcore 1.0 (package changed in 14.0)
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intType specifying that the currently configuration has been changed to a different configuration than before, viaConfigurationManager.setCurrent(Configuration)static final intType specifying that a configuration has been cleared viaConfiguration.clear()static final intType specifying that a configuration has been copied viaConfigurationManager.copy(int, String, int, String)static final intType specifying that a new configuration has been created viaConfigurationManager.create(int, String)static final intType specifying that a configuration has been deleted viaConfigurationManager.delete(int, String)static final intType specifying that a configuration has been imported viaConfigurationManager.importFromStream(int, String, java.io.InputStream).static final intType specifying that a configuration has been modified, e.g. viaConfiguration.put(String, String).static final intType specifying that a ConfigKey default value has been modified, e.g. viaConfigKey.setDefault(String). -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns 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).intReturns the scope of the configuration which was changed (or the scope of the new current configuration).intgetType()Returns the event type which specifies exactly which change occurred with the given configuration.booleanReturns true if the configuration was the "current" configuration at the time this event was created, false otherwise.
-
Felddetails
-
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)- Siehe auch:
-
TYPE_CREATE
public static final int TYPE_CREATEType specifying that a new configuration has been created viaConfigurationManager.create(int, String)- Siehe auch:
-
TYPE_MODIFY
public static final int TYPE_MODIFYType specifying that a configuration has been modified, e.g. viaConfiguration.put(String, String).- Siehe auch:
-
TYPE_DELETE
public static final int TYPE_DELETEType specifying that a configuration has been deleted viaConfigurationManager.delete(int, String)- Siehe auch:
-
TYPE_IMPORT
public static final int TYPE_IMPORTType specifying that a configuration has been imported viaConfigurationManager.importFromStream(int, String, java.io.InputStream).- Siehe auch:
-
TYPE_COPY
public static final int TYPE_COPYType specifying that a configuration has been copied viaConfigurationManager.copy(int, String, int, String)- Siehe auch:
-
TYPE_CLEAR
public static final int TYPE_CLEARType specifying that a configuration has been cleared viaConfiguration.clear()- Siehe auch:
-
TYPE_MODIFY_DEFAULT
public static final int TYPE_MODIFY_DEFAULTType specifying that a ConfigKey default value has been modified, e.g. viaConfigKey.setDefault(String).- Siehe auch:
-
-
Methodendetails
-
getChangedConfiguration
Returns the configuration which was changed (or the new current configuration).- Gibt zurück:
- the configuration which was changed (or new current configuration). Never null.
- Seit:
- inetcore 2.2
- Siehe auch:
-
getChangedConfigurationName
Returns the name of the configuration which was changed (or the name of the new current configuration).- Gibt zurück:
- name of the configuration which was changed (or the name of the new current configuration). Never null.
- Seit:
- inetcore 1.0
- Siehe auch:
-
getChangedConfigurationScope
public int getChangedConfigurationScope()Returns the scope of the configuration which was changed (or the scope of the new current configuration).- Gibt zurück:
- the scope of the configuration which was changed (or the scope of the new current configuration)
- Seit:
- inetcore 1.0
- Siehe auch:
-
isCurrentConfiguration
public boolean isCurrentConfiguration()Returns true if the configuration was the "current" configuration at the time this event was created, false otherwise.- Gibt zurück:
- true if the configuration was the "current" configuration at the time this event was created, false otherwise.
- Seit:
- inetcore 1.0
- Siehe auch:
-
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.- Gibt zurück:
- type of configuration change event
- Seit:
- inetcore 1.0
- Siehe auch:
-