@Contract public abstract class BaseNotifierService<E extends NotificationEvent,C extends Notifier,NC extends NotifierConfiguration> extends Object implements EventListener
EventListener.Event<T>| Constructor and Description |
|---|
BaseNotifierService() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bootstrap() |
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
Class<NC> |
getNotifierConfigType() |
NotifierConfigurationExecutionOptions |
getNotifierConfigurationExecutionOptions() |
Class<C> |
getNotifierType() |
NotifierType |
getType() |
abstract void |
handleNotification(E event) |
protected void |
register(NotifierType type,
Class<C> notifierType,
Class<NC> notifierConfigType,
BaseNotifierService service) |
protected void |
reset(BaseNotifierService service)
Unregisters a service and cleans up any information stored in it
This function does NOT restart the service.
|
abstract void |
shutdown() |
@Inject protected Events events
public abstract void bootstrap()
public abstract void shutdown()
public void event(EventListener.Event event)
EventListenerevent in interface EventListenerprotected void register(NotifierType type, Class<C> notifierType, Class<NC> notifierConfigType, BaseNotifierService service)
public abstract void handleNotification(E event)
public NotifierType getType()
public NotifierConfigurationExecutionOptions getNotifierConfigurationExecutionOptions()
protected void reset(BaseNotifierService service)
service - Copyright © 2017. All rights reserved.