Interface ResolvableCalculationTarget

    • Method Detail

      • resolveTarget

        CalculationTarget resolveTarget​(ReferenceData refData)
        Resolves this target, returning the resolved instance.

        For example, if this represents a position where the security is referred to only by identifier, this method can be used to convert the position to an equivalent instance with the security looked up from reference data.

        The resulting target is bound to data from reference data. If the data changes, the resulting target form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

        refData - the reference data to use when resolving
        the resolved target
        ReferenceDataNotFoundException - if an identifier cannot be resolved in the reference data
        RuntimeException - if unable to resolve due to an invalid definition