Package com.opengamma.web.valuerequirementname

Examples of com.opengamma.web.valuerequirementname.WebValueRequirementNamesResource


  protected void initValueRequirementNames(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    String valueRequirementNameClasses = configuration.get(WebValueRequirementNamesResource.VALUE_REQUIREMENT_NAME_CLASSES);
    configuration.remove(WebValueRequirementNamesResource.VALUE_REQUIREMENT_NAME_CLASSES);

    if (valueRequirementNameClasses == null) {
      repo.getRestComponents().publishResource(new WebValueRequirementNamesResource());
    } else if (valueRequirementNameClasses.contains(",")) {
      repo.getRestComponents().publishResource(
          new WebValueRequirementNamesResource(valueRequirementNameClasses.split(",")));
    } else {
      repo.getRestComponents().publishResource(new WebValueRequirementNamesResource(new String[] {valueRequirementNameClasses}));
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.web.valuerequirementname.WebValueRequirementNamesResource

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.