public class RemoteNamedMarketDataSpecificationRepositoryComponentFactory extends AbstractRemoteComponentServerComponentFactory {
@Override
protected void initComponent(ComponentRepository repo, ComponentInfo info) {
if (NamedMarketDataSpecificationRepository.class.isAssignableFrom(info.getType())) {
NamedMarketDataSpecificationRepository repository = new RemoteNamedMarketDataSpecificationRepository(info.getUri());
repo.registerComponent(info, repository);
if (isPublishRest()) {
repo.getRestComponents().republish(info);
}
}