Interface ResourceEventNotifier<R extends Serializable,T extends ResourceEvent<?>>
-
- All Known Implementing Classes:
AttachmentEventNotifier
,AttendeeLifeCycleEventNotifier
,CalendarEventLifeCycleEventNotifier
,CalendarEventOccurrenceLifeCycleEventNotifier
,CalendarLifeCycleEventNotifier
,CDIResourceEventNotifier
,CommentEventNotifier
,ComponentInstanceEventNotifier
,GroupEventNotifier
,GroupUserLinkEventNotifier
,JMSResourceEventNotifier
,NodeEventNotifier
,PublicationEventNotifier
,RelationShipEventNotifier
,ReplacementEventNotifier
,SpaceEventNotifier
,UserEventNotifier
,UserPreferenceEventNotifier
,WysiwygEventNotifier
public interface ResourceEventNotifier<R extends Serializable,T extends ResourceEvent<?>>
A notifier of an event about a resource in Silverpeas. A notification can be performed either within or off the Silverpeas runtime context. According to the need, the implementation will be different and as such an abstract class is defined for each of these two different notification ways:org.silverpeas.core.notification.system.CDIResourceEventNotifier
for a notification within the runtime context of Silverpeas; this notification is based upon the CDI Event mechanism and as such it is by default synchronous.org.silverpeas.core.notification.system.JMSResourceEventNotifier
for a notification off the runtime context of Silverpeas; it uses a JMS backend and as such it is naturally asynchronous.
- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notify(T event)
Notify about the specified event.void
notifyEventOn(ResourceEvent.Type type, R... resource)
Notify about an event of the specified type and on the specified resource.
-
-
-
Method Detail
-
notify
void notify(T event)
Notify about the specified event.- Parameters:
event
- the event to fire.
-
notifyEventOn
void notifyEventOn(ResourceEvent.Type type, R... resource)
Notify about an event of the specified type and on the specified resource.- Parameters:
type
- the type of the event that defines its cause.resource
- the resource related by the event. In the case of an update, two instances of the same resource is expected: the first being the resource before the update, the second being the resource after the update.
-
-