Package com.opengamma.component

Examples of com.opengamma.component.ComponentManager.start()


  }

  //-------------------------------------------------------------------------
  public void test() throws Exception {
    ComponentManager manager = new ComponentManager("test");
    manager.start(CONFIG_RESOURCE_LOCATION);
   
    RemoteComponentServer remoteServer = new RemoteComponentServer(URI.create("http://localhost:" + getJettyPort() + "/jax"));
    assertTrue(remoteServer.getComponentServer().getComponentInfos().size() > 0);
   
    manager.getRepository().stop();
View Full Code Here


    }
  }
 
  protected static <T extends DbToolContext> T initDbToolContext(String configResource, Class<T> dbToolContextClass) {
    ComponentManager manager = new ComponentManager("dbtoolcontext");
    manager.start(configResource);
    ComponentRepository repo = manager.getRepository();
    T dbToolContext = repo.getInstance(dbToolContextClass, "tool");
    if (dbToolContext == null) {
      throw new OpenGammaRuntimeException("Unable to find tool context in config resource");
    }
View Full Code Here

    if (configResourceLocation.startsWith("http://")) {
      return createToolContextByHttp(configResourceLocation, toolContextClazz, classifierChain);
     
    } else // use local file
      ComponentManager manager = new ComponentManager("toolcontext");
      manager.start(configResourceLocation);
      ComponentRepository repo = manager.getRepository();
      return repo.getInstance(ToolContext.class, "tool");
    }
  }
View Full Code Here

  private List<String> _report;

  @BeforeClass(timeOut = 40_000L)
  public void initialise() {
    final ComponentManager manager = new ComponentManager("test");
    manager.start("classpath:/fullstack/fullstack-examplessimulated-test.properties");
    _repo = manager.getRepository();
    _viewCompilationServices = createViewCompilationServices();
    _cacheManager = _repo.getInstance(CacheManager.class, "standard");
    _configSource = _repo.getInstance(ViewProcessor.class, "main").getConfigSource();
    _report = new LinkedList<String>();
View Full Code Here

  //-------------------------------------------------------------------------
  @Test(enabled = false)
  public void test() throws Exception {
    final ComponentManager manager = new ComponentManager("test");
    manager.start(CONFIG_RESOURCE_LOCATION);

    final RemoteComponentServer remoteServer = new RemoteComponentServer(URI.create("http://localhost:" + getJettyPort() + "/jax"));
    assertTrue(remoteServer.getComponentServer().getComponentInfos().size() > 0);

    manager.getRepository().stop();
View Full Code Here

  private ExecutorService _executorService;

  @BeforeClass
  public void initialise() {
    final ComponentManager manager = new ComponentManager("test");
    manager.start("classpath:/fullstack/fullstack-examplessimulated-test.properties");
    _repo = manager.getRepository();
    final CompiledFunctionService cfs = _repo.getInstance(CompiledFunctionService.class, "main");
    _functionRepository = cfs.compileFunctionRepository(Instant.now());
    _functionExclusionGroups = _repo.getInstance(FunctionExclusionGroups.class, "main");
    _portfolioMaster = _repo.getInstance(PortfolioMaster.class, "central");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.