Interface SubscriptionRequestFactory
-
- All Known Implementing Classes:
PermissionedSubscriptionRequestFactory
public interface SubscriptionRequestFactory
An interface that is used to createSubscriptionRequest
objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SubscriptionRequestFactory.Context
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.caplin.ret.trapi.rates.SubscriptionRequest
createFxRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo)
You should use this method to return a newSubscriptionRequest
object for FX rates.com.caplin.ret.trapi.rates.SubscriptionRequest
createMetalRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo)
You should use this method to return a newSubscriptionRequest
object for Commodities rates.void
initialise(SubscriptionRequestFactory.Context context)
This notifies theSubscriptionRequestFactory
that it is about to be loaded.
-
-
-
Method Detail
-
initialise
void initialise(SubscriptionRequestFactory.Context context)
This notifies the
SubscriptionRequestFactory
that it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
SubscriptionRequestFactory
is loaded by the system.
-
createFxRatesSubscriptionRequest
com.caplin.ret.trapi.rates.SubscriptionRequest createFxRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo) throws SubscriptionRequestException
You should use this method to return a new
SubscriptionRequest
object for FX rates.- Returns:
- a new
SubscriptionRequest
- Throws:
SubscriptionRequestException
-
createMetalRatesSubscriptionRequest
com.caplin.ret.trapi.rates.SubscriptionRequest createMetalRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo) throws SubscriptionRequestException
You should use this method to return a newSubscriptionRequest
object for Commodities rates.- Returns:
- a new
SubscriptionRequest
- Throws:
SubscriptionRequestException
-
-