2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.service
Class ServicesEventHandler

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.service.ServicesEventHandler
All Implemented Interfaces:
EventListener, EventHandler

public class ServicesEventHandler
extends Object
implements EventHandler

Event handler for managing services when new extension are added or existing extension are updated or deleted.

Version:
2.8
Author:
nicklas
Last modified
$Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $

Field Summary
private static Logger log
           
private  Settings settings
           
 
Constructor Summary
ServicesEventHandler(Settings settings)
           
 
Method Summary
 void handleEvent(EventType event, ExtensionPoint<?> extensionPoint, Extension<?> extension)
          Handle an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Logger log

settings

private Settings settings
Constructor Detail

ServicesEventHandler

public ServicesEventHandler(Settings settings)
Method Detail

handleEvent

public void handleEvent(EventType event,
                        ExtensionPoint<?> extensionPoint,
                        Extension<?> extension)
Description copied from interface: EventHandler
Handle an event. Since the types of events are likely to expand in the future, we recommend that the event handler is written so that it only responds to specific event types or that it is paired with an EventFilter that filters out undesired events.

Specified by:
handleEvent in interface EventHandler
Parameters:
event - The event that happend
extensionPoint - The extension point that the extension extends, or that the event happened to
extension - The extension the event happend to, or null if the event happended to the extension point

2.17.2: 2011-06-17