Class AbstractEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AbstractCommerceUserEvent,AbstractConsentEvent,AbstractCronJobEvent,AbstractDataImportEvent,AbstractLoginEvent,AbstractPersistenceEvent,AbstractProcessEvent,AbstractSyncEvent,AbstractTrackingEvent,AbstractWebserviceActionEvent,AfterInitializationEndEvent,AfterInitializationStartEvent,AfterSessionAttributeChangeEvent,AfterSessionCreationEvent,AfterSessionUserChangeEvent,AfterTenantInitializationClusterAwareEvent,AfterTenantRestartClusterAwareEvent,AfterTenantRestartEvent,AgentDesktopAbstractEvent,Agentdesktopdataexchangeb2bEvent,AnonymousConsentChangeEvent,ApprovalProcessCompleteEvent,ApprovalProcessStartEvent,BackofficeEvent,BeforeSessionCloseEvent,C4CQuoteBuyerOrderPlacedEvent,CancelFinishedEvent,CancelPendingEvent,ConsignmentProcessingEvent,CreateReturnEvent,CustomerReplicationEvent,DatahubAdapterImportEvent,DefaultSecDeleteAddressEvent,DefaultSecDeleteB2BUnitEvent,DefaultSecDeleteCustomerEvent,DefaultSecDeleteOrderEvent,DefaultSecValidateCustomerEvent,DynamicProcessEvent,EventExportDisabledEvent,EventExportEnabledEvent,EventExportFailedEvent,ExportDataEvent,InvalidateCertificateCredentialsCacheEvent,InvalidateCharonCacheEvent,InvalidateConsumptionLayerUserSegmentsProviderCacheEvent,InvalidateModelConverterRegistryEvent,JCoConnectionsSnapshotClusterEvent,JCoConnectionsSnapshotClusterResultEvent,KieModuleSwappingEvent,MerchantApprovedEvent,MerchantRejectedEvent,OrderApprovalRejectionEvent,OrderApprovedEvent,OrderFraudEmployeeNotificationEvent,OrderPendingApprovalEvent,OrderProcessingEvent,OrderRejectedEvent,QuoteApprovedEvent,QuoteBuyerOrderPlacedEvent,QuoteRejectedEvent,ReplenishmentOrderConfirmationEvent,RepollEvent,RuleEngineInitializedEvent,RuleEngineModuleSwapCompletedEvent,RulesCompilationInProgressQueryEvent,RulesCompilationInProgressResponseEvent,RuleUpdatedEvent,SapC4cCustomerUpdateEvent,SapCpiQuoteOrderPlacedEvent,SapRevenueCloudCustomerUpdateEvent,SAPRFCDestinationEvent,SendOrderPartiallyCanceledMessageEvent,SendOrderPartiallyRefundedMessageEvent,SendReturnLabelEvent,SessionEvent,SubmitOrderEvent,TestDummyEvent,TestingEvent,TestPerformanceEvent,TestScriptingEvent,UploadDataEvent
public abstract class AbstractEvent extends org.springframework.context.ApplicationEventSuper 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractEvent()AbstractEvent(java.io.Serializable source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventScopegetScope()java.lang.ObjectgetSource()booleanisFromCluster()voidsetFromCluster(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.java.lang.StringtoString()
-
-
-
Method Detail
-
getSource
public java.lang.Object getSource()
- Overrides:
getSourcein classjava.util.EventObject- Returns:
- the object on which the Event initially occurred.
-
getScope
public EventScope getScope()
- Returns:
- the
EventScopeof this event
-
setScope
public void setScope(EventScope scope)
Sets theEventScopefor this event.- Parameters:
scope- the EventScope to be set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
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
-
-