Class RefreshEvent
- java.lang.Object
-
- java.util.EventObject
-
- io.micronaut.context.event.ApplicationEvent
-
- io.micronaut.runtime.context.scope.refresh.RefreshEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class RefreshEvent extends io.micronaut.context.event.ApplicationEvent
An
ApplicationEvent
for handling refreshes.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RefreshEvent()
Constructs a refresh Event that refreshes all keys.RefreshEvent(java.util.Map<java.lang.String,java.lang.Object> changes)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getSource()
-
-
-
Constructor Detail
-
RefreshEvent
public RefreshEvent(java.util.Map<java.lang.String,java.lang.Object> changes)
Constructs a prototypical Event.- Parameters:
changes
- The keys that changed and the previous values of said keys- Throws:
java.lang.IllegalArgumentException
- if source is null.
-
RefreshEvent
public RefreshEvent()
Constructs a refresh Event that refreshes all keys.
-
-