Package com.activeviam.risk.ref.cfg.impl
Class RiskPostProcessorConfig
- java.lang.Object
-
- com.activeviam.risk.ref.cfg.impl.RiskPostProcessorConfig
-
@Configuration public class RiskPostProcessorConfig extends Object
Configuration of the operations performed after the initialisation of th ActivePivot manager
-
-
Field Summary
Fields Modifier and Type Field Description protected com.qfs.server.cfg.impl.ActivePivotConfig
apConfig
ActivePivot spring configurationprotected List<Consumer<com.qfs.store.IDatastore>>
customListenerInjections
protected com.qfs.store.IDatastore
datastore
protected org.springframework.core.env.Environment
env
Spring environment, automatically wiredprotected IFXRates
fxRates
static String
INJECTION_ERROR
protected IInputSelector
inputSelector
protected static Logger
LOGGER
Loggerprotected IMarketDataRetrievalService
marketDataRetrievalService
protected IMaturityConverter
maturityConverter
protected IPnLExplainFormulaProvider
pnlExplainFormulaProvider
protected ITailMeasureCalc
tailMeasureCalc
protected ITenorUtil
tenorUtil
protected IWeightedTailMeasureCalc
weightedTailMeasureCalc
-
Constructor Summary
Constructors Constructor Description RiskPostProcessorConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apManagerInitPrerequisitePluginInjections()
Extended plugin injections that are required before doing the startup of the ActivePivot manager.static <T,U,V>
voidinjectAll(Class<T> interfaceClass, Class<U> awareClass, V bean)
This function will inject a bean to all the kind of selected QFS plugin that accept it, aka.
-
-
-
Field Detail
-
LOGGER
protected static final Logger LOGGER
Logger
-
INJECTION_ERROR
public static final String INJECTION_ERROR
- See Also:
- Constant Field Values
-
env
@Autowired protected org.springframework.core.env.Environment env
Spring environment, automatically wired
-
apConfig
@Autowired protected com.qfs.server.cfg.impl.ActivePivotConfig apConfig
ActivePivot spring configuration
-
datastore
@Autowired protected com.qfs.store.IDatastore datastore
-
fxRates
@Autowired protected IFXRates fxRates
-
maturityConverter
@Autowired protected IMaturityConverter maturityConverter
-
tenorUtil
@Autowired protected ITenorUtil tenorUtil
-
tailMeasureCalc
@Autowired protected ITailMeasureCalc tailMeasureCalc
-
weightedTailMeasureCalc
@Autowired protected IWeightedTailMeasureCalc weightedTailMeasureCalc
-
pnlExplainFormulaProvider
@Autowired protected IPnLExplainFormulaProvider pnlExplainFormulaProvider
-
inputSelector
@Autowired protected IInputSelector inputSelector
-
marketDataRetrievalService
@Autowired protected IMarketDataRetrievalService marketDataRetrievalService
-
-
Method Detail
-
apManagerInitPrerequisitePluginInjections
public void apManagerInitPrerequisitePluginInjections()
Extended plugin injections that are required before doing the startup of the ActivePivot manager.- Throws:
com.quartetfs.fwk.QuartetRuntimeException
- In case of wrong configuration
-
injectAll
public static <T,U,V> void injectAll(Class<T> interfaceClass, Class<U> awareClass, V bean)
This function will inject a bean to all the kind of selected QFS plugin that accept it, aka. that implements awareClass. The awareClass should comply with the following pattern :
public interface I[Name]Aware {
String PROPERTY_NAME = "[Name]";
void set[Name](I[Name] [name]);
}
- Type Parameters:
T
- The type of the interfaceClassU
- The type of the awareClass akaI[Name]Aware
V
- The type of the bean that implementsI[Name]
- Parameters:
interfaceClass
- The king of QFS pluginawareClass
- The acceptance interface of the beanbean
- The bean to inject- Throws:
com.quartetfs.fwk.QuartetRuntimeException
- Thrown if the awareClass doesn't comply with the contract.
-
-