org.jasig.portal.events.handlers
Class StatsRecorderEventHandlerAdapter

java.lang.Object
  extended by org.jasig.portal.events.handlers.StatsRecorderEventHandlerAdapter
All Implemented Interfaces:
EventHandler, InitializingBean

public final class StatsRecorderEventHandlerAdapter
extends Object
implements EventHandler, InitializingBean

Adapter class for legacy IStatsRecorder such that deployers don't immediately need to write Event Handlers. They can re-use their existing IStatsRecorder.

Since:
2.6
Version:
$Revision: 19776 $ Date$
Author:
Scott Battaglia

Constructor Summary
StatsRecorderEventHandlerAdapter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void handleEvent(PortalEvent event)
          Method to handle any processing of the event that is needed.
 void setRecorder(IStatsRecorder recorder)
           
 boolean supports(PortalEvent event)
          Method to check if this handler will be able to process the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsRecorderEventHandlerAdapter

public StatsRecorderEventHandlerAdapter()
Method Detail

handleEvent

public void handleEvent(PortalEvent event)
Description copied from interface: EventHandler
Method to handle any processing of the event that is needed.

Specified by:
handleEvent in interface EventHandler
Parameters:
event - the event to handle.

supports

public boolean supports(PortalEvent event)
Description copied from interface: EventHandler
Method to check if this handler will be able to process the event.

Specified by:
supports in interface EventHandler
Parameters:
event - the event we want to check if we support.
Returns:
true if the event is supported, false otherwise.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setRecorder

public void setRecorder(IStatsRecorder recorder)


Copyright © 2010 Jasig. All Rights Reserved.