Class LinkedEntityEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.rest.core.event.RepositoryEvent
org.springframework.data.rest.core.event.LinkedEntityEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AfterLinkDeleteEvent
,AfterLinkSaveEvent
,BeforeLinkDeleteEvent
,BeforeLinkSaveEvent
Base class for
RepositoryEvent
s that deal with saving/updating or deleting a linked object.- Author:
- Jon Brisbin, Oliver Gierke
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionLinkedEntityEvent
(Object source, Object linked) Creates a newLinkedEntityEvent
for th given source and linked instance. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LinkedEntityEvent
Creates a newLinkedEntityEvent
for th given source and linked instance.- Parameters:
source
- must not be null.linked
- can be null.
-
-
Method Details
-
getLinked
Get the linked object.- Returns:
- The entity representing the right-hand side of this relationship.
-