ComponentInfo infoSource = new ComponentInfo(HistoricalTimeSeriesSource.class, getClassifier());
infoSource.addAttribute(ComponentInfoAttributes.LEVEL, 1);
infoSource.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesSource.class);
repo.registerComponent(infoSource, source);
if (isPublishRest()) {
repo.getRestComponents().publish(infoResolver, new DataHistoricalTimeSeriesResolverResource(resolver, OpenGammaFudgeContext.getInstance()));
repo.getRestComponents().publish(infoSource, new DataHistoricalTimeSeriesSourceResource(source));
}
}