public class NotificationProcessor extends java.lang.Object implements NotificationListener
| Modifier and Type | Field and Description |
|---|---|
protected NotificationCenter |
notificationCenter |
protected Provision |
provision |
protected java.util.concurrent.ExecutorService |
threadPool |
| Constructor and Description |
|---|
NotificationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
catchEvent(Notification notification)
It is the catch all processEvent method.
|
java.lang.Class<? extends Notification>[] |
getNotificationTypes() |
void |
onEvent(Notification notification)
The onEvent is running on the same thread and using the same Resources as the
sender.
|
void |
run(java.lang.Runnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, description@Inject(optional=true) protected java.util.concurrent.ExecutorService threadPool
@Inject protected NotificationCenter notificationCenter
@Inject protected Provision provision
public java.lang.Class<? extends Notification>[] getNotificationTypes()
getNotificationTypes in interface NotificationListenerpublic void onEvent(Notification notification)
onEvent in interface NotificationListenernotification - Notification instancepublic void catchEvent(Notification notification)
notification - Notification instancepublic void run(java.lang.Runnable runnable)