Class JsonProviderWrapper<T extends SubjectInfo,E>
- java.lang.Object
-
- com.caplin.motif.datasource.provider.JsonProviderWrapper<T,E>
-
- All Implemented Interfaces:
com.caplin.datasource.publisher.CachingDataProvider
public class JsonProviderWrapper<T extends SubjectInfo,E> extends java.lang.Object implements com.caplin.datasource.publisher.CachingDataProvider
-
-
Constructor Summary
Constructors Constructor Description JsonProviderWrapper(JsonDataProvider dataProvider, SubjectParser<T> subjectParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDiscard(java.lang.String subject)
void
onRequest(java.lang.String subject)
-
-
-
Constructor Detail
-
JsonProviderWrapper
public JsonProviderWrapper(JsonDataProvider dataProvider, SubjectParser<T> subjectParser)
-
-
Method Detail
-
onRequest
public void onRequest(java.lang.String subject)
- Specified by:
onRequest
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
onDiscard
public void onDiscard(java.lang.String subject)
- Specified by:
onDiscard
in interfacecom.caplin.datasource.publisher.CachingDataProvider
-
-