Package com.opengamma.component.rest

Examples of com.opengamma.component.rest.JerseyRestResourceFactory


        if (_deployMode == DeployMode.PROD) {
          throw new IllegalArgumentException("CacheManager required for production deployment");
        }
      }
     
      JerseyRestResourceFactory resource = new JerseyRestResourceFactory(WebBundlesResource.class, _bundleManagerFactory, compressor, _deployMode);
      _repo.getRestComponents().publishResource(resource);
    }
View Full Code Here


    repo.getRestComponents().publishResource(new WebHomeResource());
    repo.getRestComponents().publishResource(new WebAboutResource());
  }

  protected void initMasters(ComponentRepository repo) {
    JerseyRestResourceFactory resource;
    resource = new JerseyRestResourceFactory(WebConfigsResource.class, getConfigMaster());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebExchangesResource.class, getExchangeMaster());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebHolidaysResource.class, getHolidayMaster());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebRegionsResource.class, getRegionMaster());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebSecuritiesResource.class, getSecurityMaster(), getSecurityLoader(), getHistoricalTimeSeriesMaster(), getOrganizationMaster());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebPositionsResource.class, getPositionMaster(), getSecurityLoader(), getSecuritySource(), getHistoricalTimeSeriesSource());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebPortfoliosResource.class, getPortfolioMaster(), getPositionMaster(), getSecuritySource(), getScheduler());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebAllHistoricalTimeSeriesResource.class, getHistoricalTimeSeriesMaster(), getHistoricalTimeSeriesLoader(), new MasterConfigSource(getConfigMaster()));
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebComputationTargetTypeResource.class, getTargetTypes());
    repo.getRestComponents().publishResource(resource);
    resource = new JerseyRestResourceFactory(WebOrganizationsResource.class, getOrganizationMaster());
    repo.getRestComponents().publishResource(resource);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.component.rest.JerseyRestResourceFactory

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.