Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created April 11, 2012 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vineeth-Mohan/2360978 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/2360978 to your computer and use it in GitHub Desktop.
package com.opengamma.web.reports;
import com.opengamma.component.ComponentRepository;
import com.opengamma.component.factory.web.WebsiteBasicsComponentFactory;
import com.opengamma.web.valuerequirementname.WebValueRequirementNamesResource;
public class CustomBasicsComponentFactory extends WebsiteBasicsComponentFactory {
protected void initValueRequirementNames(ComponentRepository repo) {
super.initValueRequirementNames(repo);
repo.getRestComponents().publishResource(new ReportsResource());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment