org.dspace.usage
Class AbstractUsageEventListener

java.lang.Object
  extended by org.dspace.usage.AbstractUsageEventListener
All Implemented Interfaces:
org.dspace.services.model.EventListener
Direct Known Subclasses:
LoggerUsageEventListener, PassiveUsageEventListener, TabFileUsageEventListener

public abstract class AbstractUsageEventListener
extends Object
implements org.dspace.services.model.EventListener

AbstractUsageEventListener is used as the base class for listening events running in the EventService.

Version:
$Revision: $
Author:
Mark Diggory (mdiggory at atmire.com)

Constructor Summary
AbstractUsageEventListener()
           
 
Method Summary
 String[] getEventNamePrefixes()
          Empty String[] flags to have Listener consume any event name prefixes.
 String getResourcePrefix()
          Currently consumes events generated for all resources.
 void setEventService(org.dspace.services.EventService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dspace.services.model.EventListener
receiveEvent
 

Constructor Detail

AbstractUsageEventListener

public AbstractUsageEventListener()
Method Detail

getEventNamePrefixes

public String[] getEventNamePrefixes()
Empty String[] flags to have Listener consume any event name prefixes.

Specified by:
getEventNamePrefixes in interface org.dspace.services.model.EventListener

getResourcePrefix

public String getResourcePrefix()
Currently consumes events generated for all resources.

Specified by:
getResourcePrefix in interface org.dspace.services.model.EventListener

setEventService

public void setEventService(org.dspace.services.EventService service)
                     throws Exception
Throws:
Exception


Copyright © 2010 DuraSpace. All Rights Reserved.