E
- the type of the Event
public interface EventHandler<E extends Event>
EventRegistry
,
Receiver.setDefaultHandler(EventHandler)
,
Receiver.registerHandler(EventHandler)
Modifier and Type | Method and Description |
---|---|
Class<E> |
getEventClass()
Returns the type of the
Event this handler reacts to |
void |
onEvent(E event,
Environment environment,
Site site)
Handles the given
Event , usually by calling it's perform -method. |
void onEvent(E event, Environment environment, Site site) throws InvalidConfigurationException, BusinessException
Event
, usually by calling it's perform
-method.event
- the Event
to be handledenvironment
- the Environment
to usesite
- the Site
where the Event
occurredInvalidConfigurationException
- if there's a configuration errorBusinessException
- if an error occurs while performing the eventEvent.perform(Environment, Site)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.