Package com.opengamma.web.server

Examples of com.opengamma.web.server.LiveResultsServiceBean


  private FudgeContext _fudgeContext = OpenGammaFudgeContext.getInstance();

  //-------------------------------------------------------------------------
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    LiveResultsServiceBean bean = new LiveResultsServiceBean();
    bean.setViewProcessor(getViewProcessor());
    bean.setPositionSource(getPositionSource());
    bean.setSecuritySource(getSecuritySource());
    bean.setComputationTargetResolver(getComputationTargetResolver());
    bean.setUserPortfolioMaster(getUserPortfolioMaster());
    bean.setUserPositionMaster(getUserPositionMaster());
    bean.setUserConfigMaster(getUserConfigMaster());
    bean.setSnapshotMaster(getSnapshotMaster());
    bean.setPortfolioAggregators(getPortfolioAggregationFunctions());
    bean.setUser(getUser());
    bean.setFudgeContext(getFudgeContext());
    ExecutorServiceFactoryBean execBean = new ExecutorServiceFactoryBean();
    execBean.setStyle(Style.CACHED);
    bean.setExecutorService(execBean.getObjectCreating());
   
    WebAnalyticsResource resource = new WebAnalyticsResource(bean);
    repo.registerServletContextAware(resource);
    repo.getRestComponents().publishResource(resource);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.web.server.LiveResultsServiceBean

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.