Class AbstractEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.hybris.platform.servicelayer.event.events.AbstractEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractCommerceUserEvent,AbstractConsentEvent,AbstractCronJobEvent,AbstractDataImportEvent,AbstractLoginEvent,AbstractPersistenceEvent,AbstractProcessEvent,AbstractSyncEvent,AbstractTrackingEvent,AbstractWebserviceActionEvent,AfterInitializationEndEvent,AfterInitializationStartEvent,AfterSessionAttributeChangeEvent,AfterSessionCreationEvent,AfterSessionUserChangeEvent,AfterTenantInitializationClusterAwareEvent,AfterTenantRestartClusterAwareEvent,AfterTenantRestartEvent,AnonymousConsentChangeEvent,ApprovalProcessCompleteEvent,ApprovalProcessStartEvent,BackofficeEvent,BackofficeRoleUpdatedClusterAwareEvent,BaseWebhookEvent,BeforeSessionCloseEvent,CancelFinishedEvent,CancelPendingEvent,ConsignmentProcessingEvent,CreateReturnEvent,CronJobInfoEvent,DatahubAdapterImportEvent,DynamicProcessEvent,EventExportDisabledEvent,EventExportEnabledEvent,EventExportFailedEvent,ExportDataEvent,InvalidateCertificateCredentialsCacheEvent,InvalidateCharonCacheEvent,InvalidateConsumptionLayerUserSegmentsProviderCacheEvent,InvalidateModelConverterRegistryEvent,ItemSavedEvent,KieModuleSwappingEvent,MerchantApprovedEvent,MerchantRejectedEvent,OrderApprovalRejectionEvent,OrderApprovedEvent,OrderFraudEmployeeNotificationEvent,OrderPendingApprovalEvent,OrderProcessingEvent,OrderRejectedEvent,OutboundSyncEvent,QuoteApprovedEvent,QuoteBuyerOrderPlacedEvent,QuoteRejectedEvent,ReplenishmentOrderConfirmationEvent,RepollEvent,RuleEngineInitializedEvent,RuleEngineModuleSwapCompletedEvent,RulesCompilationInProgressQueryEvent,RulesCompilationInProgressResponseEvent,RuleUpdatedEvent,SendOrderPartiallyCanceledMessageEvent,SendOrderPartiallyRefundedMessageEvent,SendReturnLabelEvent,SessionEvent,SubmitOrderEvent,TestDummyEvent,TestingEvent,TestPerformanceEvent,TestScriptingEvent,UploadDataEvent
public abstract class AbstractEvent
extends org.springframework.context.ApplicationEvent
Super class for the hybris event framework which is based on the spring event framework. An event consists of a
source object that denotes the origin of the event. The source object is serializable - the original source object of
ApplicationEvent is transient. This is needed for sending events in a cluster environment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()booleanvoidsetFromCluster(boolean fromCluster) If the Event is send by a cluster system (tcp message or udp packet is a hint) this method sets the internal variable to true.voidsetScope(EventScope scope) Sets theEventScopefor this event.toString()Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Constructor Details
-
AbstractEvent
public AbstractEvent() -
AbstractEvent
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject- Returns:
- the object on which the Event initially occurred.
-
getScope
- Returns:
- the
EventScopeof this event
-
setScope
Sets theEventScopefor this event.- Parameters:
scope- the EventScope to be set
-
toString
- Overrides:
toStringin classEventObject
-
isFromCluster
public boolean isFromCluster()- Returns:
- true if event is from a cluster system. Returns as default false (no cluster system).
-
setFromCluster
public void setFromCluster(boolean fromCluster) If the Event is send by a cluster system (tcp message or udp packet is a hint) this method sets the internal variable to true.- Parameters:
fromCluster- default value is false, event is not from a cluster system
-