コード例 #1
0
 /**
  * Gets a {@code ConventionBundleSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static ConventionBundleSource getConventionBundleSource(
     final FunctionExecutionContext context) {
   return (ConventionBundleSource) context.get(CONVENTION_BUNDLE_SOURCE_NAME);
 }
コード例 #2
0
 public static OverrideOperationCompiler getOverrideOperationCompiler(
     final FunctionExecutionContext context) {
   return (OverrideOperationCompiler) context.get(OVERRIDE_OPERATION_COMPILER_NAME);
 }
コード例 #3
0
 /**
  * Gets a {@code HistoricalTimeSeriesSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static HistoricalTimeSeriesSource getHistoricalTimeSeriesSource(
     final FunctionExecutionContext context) {
   return (HistoricalTimeSeriesSource) context.get(HISTORICAL_TIME_SERIES_SOURCE_NAME);
 }
コード例 #4
0
 /**
  * Gets a {@code ConfigSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static ConfigSource getConfigSource(final FunctionExecutionContext context) {
   return (ConfigSource) context.get(CONFIG_SOURCE_NAME);
 }
コード例 #5
0
 /**
  * Gets a {@code CurveCalculationConfigSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the curve config source, null if not found
  */
 public static CurveCalculationConfigSource getCurveCalculationConfigSource(
     final FunctionExecutionContext context) {
   return (CurveCalculationConfigSource) context.get(CURVE_CALCULATION_CONFIG_NAME);
 }
コード例 #6
0
 /**
  * Gets a {@code ExchangeSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static ExchangeSource getExchangeSource(final FunctionExecutionContext context) {
   return (ExchangeSource) context.get(EXCHANGE_SOURCE_NAME);
 }
コード例 #7
0
 /**
  * Gets a {@code HolidaySource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static HolidaySource getHolidaySource(final FunctionExecutionContext context) {
   return (HolidaySource) context.get(HOLIDAY_SOURCE_NAME);
 }
コード例 #8
0
 /**
  * Gets a {@code RegionSource} from the context.
  *
  * @param context the context to examine, not null
  * @return the value, null if not found
  */
 public static RegionSource getRegionSource(final FunctionExecutionContext context) {
   return (RegionSource) context.get(REGION_SOURCE_NAME);
 }