Package com.caplin.motif.fx.tobo
Class TOBOEntityChangeProvider<T extends SubjectInfo>
- java.lang.Object
-
- com.caplin.datasource.subscription.BaseSubscriptionListener
-
- com.caplin.motif.fx.tobo.TOBOEntityChangeProvider<T>
-
- All Implemented Interfaces:
com.caplin.datasource.publisher.CachingDataProvider
,com.caplin.datasource.subscription.SubscriptionListener
public abstract class TOBOEntityChangeProvider<T extends SubjectInfo> extends com.caplin.datasource.subscription.BaseSubscriptionListener implements com.caplin.datasource.publisher.CachingDataProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected TOBOEntityPublisher
publisher
protected SubjectParser<T>
subjectParser
-
Constructor Summary
Constructors Constructor Description TOBOEntityChangeProvider(java.util.logging.Logger logger, SubjectParser<T> subjectParser)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.GenericMessage message)
void
initialise(TOBOEntityPublisher toboEntityPublisher)
void
onRequest(java.lang.String subject)
protected abstract void
onRequest(T subject)
protected abstract void
onTOBOEntityChanged(T subject, java.lang.String entityId, java.lang.String description)
-
Methods inherited from class com.caplin.datasource.subscription.BaseSubscriptionListener
containerUpdated, jsonUpdated, newsUpdated, pageUpdated, permissionUpdated, recordType2Updated, recordType3Updated, recordUpdated, storyUpdated, subjectErrorReceived, subjectStatusReceived
-
-
-
-
Field Detail
-
publisher
protected TOBOEntityPublisher publisher
-
subjectParser
protected SubjectParser<T extends SubjectInfo> subjectParser
-
-
Constructor Detail
-
TOBOEntityChangeProvider
public TOBOEntityChangeProvider(java.util.logging.Logger logger, SubjectParser<T> subjectParser)
-
-
Method Detail
-
onTOBOEntityChanged
protected abstract void onTOBOEntityChanged(T subject, java.lang.String entityId, java.lang.String description)
-
onRequest
protected abstract void onRequest(T subject)
-
initialise
public void initialise(TOBOEntityPublisher toboEntityPublisher)
-
onRequest
public void onRequest(java.lang.String subject)
- Specified by:
onRequest
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
genericMessageUpdated
public void genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.GenericMessage message)
- Specified by:
genericMessageUpdated
in interfacecom.caplin.datasource.subscription.SubscriptionListener
- Overrides:
genericMessageUpdated
in classcom.caplin.datasource.subscription.BaseSubscriptionListener
-
-