Package com.opengamma.engine.function

Examples of com.opengamma.engine.function.FunctionReinitializer


    } else {
      if (_definition.getUniqueId() != null) {
        // REVIEW 2012-10-23 Andrew -- The initialisation state is no longer appropriate for tasks such as this as job version/correction will never be available at
        // this point. Most init methods are examples of premature optimisation to avoid work during the other calls. Additional target dependencies should be used
        // which easily replaces the function reinitialiser mechanism and will result in a proper implementation of version/correction handling.
        final FunctionReinitializer functionReinitializer = context.getFunctionReinitializer();
        if (functionReinitializer != null) { // this step won't happen during a compile.
          final ObjectId objectId = _definition.getUniqueId().getObjectId();
          functionReinitializer.reinitializeFunction(defnToReInit, objectId);
        }
      } else {
        s_logger.warn("Curve {} on {} has no identifier - cannot subscribe to updates", _curveName, _currency);
      }
    }
View Full Code Here


  protected ConfigSource getConfigSource() {
    return _configSource;
  }

  public static void reinitOnChanges(final FunctionCompilationContext context, final FunctionDefinition function, final Class<?> type) {
    final FunctionReinitializer reinit = context.getFunctionReinitializer();
    if (reinit != null) {
      reinit.reinitializeFunction(function, ObjectId.of(CONFIG_TYPE_SCHEME, type.getName()));
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.function.FunctionReinitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.