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
RepositoryEvents 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
ConstructorsConstructorDescriptionLinkedEntityEvent(Object source, Object linked) Creates a newLinkedEntityEventfor th given source and linked instance. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LinkedEntityEvent
Creates a newLinkedEntityEventfor 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.
-