public interface ServiceListener
An interface for objects that respond to service operations.
A service listener implements only two methods for handling any type of service operation. This decouples the listener interface and implementations from the set of events published by the various services. Listeners should be coded to respond to only the events they care about, as distinguished by an event's id.
| Modifier and Type | Method and Description |
|---|---|
void |
after(ServiceEvent event)
Executed just after a service operation occurs.
|
void |
before(ServiceEvent event)
Executed just before a service operation occurs.
|
void before(ServiceEvent event)
Executed just before a service operation occurs.
Subclasses should throw RuntimeExceptions to
signal processing errors.
void after(ServiceEvent event)
Executed just after a service operation occurs.
Subclasses should throw RuntimeExceptions to
signal processing errors.
Copyright © 2012–2018 1&1. All rights reserved.