Package com._1c.g5.aef2.events
Interface IServiceConsumer<T>
-
- Type Parameters:
T- is the type of the external events that is sent from service.
- All Known Implementing Classes:
AbstractServiceConsumer,BmChangeEventConsumer,DerivedDataObjectStatusConsumer,DistributionSupportChangeConsumer,EditingLanguageChangeConsumer,ProjectParametersConsumer
public interface IServiceConsumer<T>The service consumer that consumes service events or messages and translates it to AEFIServiceEvents that will be sent to components byIServiceEventTracker.- See Also:
IServiceEventTracker
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T externalEvent)Accepts the given event object from service and processes it.voiddispose()Disposes the consumer.IServiceEventTrackergetEventTracker()voidintitialize(IServiceEventTracker tracker)Initializes the consumer with the given tracker.voidnotifyServiceEventQualifierScopeChanged(Collection<IServiceEventQualifier> qualifiers)Notifies the consumer that the scope of processing service events was changed.
-
-
-
Method Detail
-
intitialize
void intitialize(IServiceEventTracker tracker)
Initializes the consumer with the given tracker. Also it is the point to initialize listeners for external events.- Parameters:
tracker- the tracker.
-
notifyServiceEventQualifierScopeChanged
void notifyServiceEventQualifierScopeChanged(Collection<IServiceEventQualifier> qualifiers)
Notifies the consumer that the scope of processing service events was changed.- Parameters:
qualifiers- the service event qualifiers.
-
getEventTracker
IServiceEventTracker getEventTracker()
- Returns:
- the event tracker.
-
accept
void accept(T externalEvent)
Accepts the given event object from service and processes it.- Parameters:
externalEvent- the event or message object from service.
-
dispose
void dispose()
Disposes the consumer.
-
-