Package com.bytedesk.core.asset.event
Class AbstractAssetEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.bytedesk.core.asset.event.AbstractAssetEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssetCreateEvent,AssetDeleteEvent,AssetUpdateEvent
public abstract class AbstractAssetEvent
extends org.springframework.context.ApplicationEvent
Ensures every asset-related application event carries a detached snapshot so
async listeners never touch managed persistence contexts from other threads.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
asset
-
-
Constructor Details
-
AbstractAssetEvent
-
-
Method Details
-
getAsset
-
snapshot
-