org.hudsonci.utils.event
Class EventHandlerSupport<ContextType,EventType>
java.lang.Object
org.hudsonci.utils.event.EventHandlerSupport<ContextType,EventType>
- All Implemented Interfaces:
- EventHandler<ContextType,EventType>
public abstract class EventHandlerSupport<ContextType,EventType>
- extends Object
- implements EventHandler<ContextType,EventType>
Support for EventHandler implementations.
- Since:
- 2.1.0
- Author:
- Jason Dillon
|
Field Summary |
protected org.slf4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
EventHandlerSupport
public EventHandlerSupport()
init
public void init(ContextType context)
- Description copied from interface:
EventHandler
- Called to initialize the handler w/context.
- Specified by:
init in interface EventHandler<ContextType,EventType>
getContext
protected ContextType getContext()
accept
public boolean accept(Object event)
- Accepts the event if it is a compatible type; determined by
getEventType().
- Specified by:
accept in interface EventHandler<ContextType,EventType>
getEventType
protected Class getEventType()
- Determines the event type of the handler.
Copyright © 2004-2012 Hudson. All Rights Reserved.