Spring for Apache Hadoop

org.springframework.data.hadoop.store.event
Class DefaultStoreEventPublisher

java.lang.Object
  extended by org.springframework.data.hadoop.store.event.DefaultStoreEventPublisher
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware, StoreEventPublisher

public class DefaultStoreEventPublisher
extends java.lang.Object
implements StoreEventPublisher, org.springframework.context.ApplicationEventPublisherAware

The default strategy for publishing store events.

Author:
Janne Valkealahti

Constructor Summary
DefaultStoreEventPublisher()
          Constructs default strategy without an event publisher.
DefaultStoreEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
          Constructs default strategy with an event publisher.
 
Method Summary
 void publishEvent(AbstractStoreEvent event)
          Publish a general application event of type AbstractStoreEvent.
 void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStoreEventPublisher

public DefaultStoreEventPublisher()
Constructs default strategy without an event publisher.


DefaultStoreEventPublisher

public DefaultStoreEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Constructs default strategy with an event publisher.

Parameters:
applicationEventPublisher - the event publisher
Method Detail

setApplicationEventPublisher

public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Specified by:
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware

publishEvent

public void publishEvent(AbstractStoreEvent event)
Description copied from interface: StoreEventPublisher
Publish a general application event of type AbstractStoreEvent.

Specified by:
publishEvent in interface StoreEventPublisher
Parameters:
event - the event

Spring for Apache Hadoop