Package org.openwms.core.preferences.app
Class PreferencesApplicationListener
java.lang.Object
org.openwms.core.preferences.app.PreferencesApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.openwms.core.event.MergePropertiesEvent>
@Component
class PreferencesApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.openwms.core.event.MergePropertiesEvent>
A PreferencesApplicationListener.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.openwms.core.event.MergePropertiesEvent event) When aMergePropertiesEvent
is caught, newPreferences
received from the file provider are persisted.
-
Field Details
-
service
-
-
Constructor Details
-
PreferencesApplicationListener
PreferencesApplicationListener(PreferencesService service)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.openwms.core.event.MergePropertiesEvent event) When aMergePropertiesEvent
is caught, newPreferences
received from the file provider are persisted. Already existingPreferences
are ignored.- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.openwms.core.event.MergePropertiesEvent>
-