public class DefaultStoreEventPublisher extends java.lang.Object implements StoreEventPublisher, org.springframework.context.ApplicationEventPublisherAware
Constructor and Description |
---|
DefaultStoreEventPublisher()
Constructs default strategy without an event publisher.
|
DefaultStoreEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Constructs default strategy with an event publisher.
|
Modifier and Type | Method and Description |
---|---|
void |
publishEvent(AbstractStoreEvent event)
Publish a general application event of type
AbstractStoreEvent . |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public DefaultStoreEventPublisher()
public DefaultStoreEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
applicationEventPublisher
- the event publisherpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void publishEvent(AbstractStoreEvent event)
StoreEventPublisher
AbstractStoreEvent
.publishEvent
in interface StoreEventPublisher
event
- the event