Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2011-2012 Barchart, Inc. <http://www.barchart.com/> All rights reserved. Licensed under the OSI BSD License. http://www.opensource.org/licenses/bsd-license.php
 
 package com.barchart.feed.ddf.market.provider;
 
import  com.barchart.feed.api.model.meta.Instrument;
import  com.barchart.feed.base.market.api.MarketDo;
import  com.barchart.feed.base.market.api.MarketFactory;
import  com.barchart.feed.base.provider.MakerBaseAllMarkets;
public class DDF_MarketServiceAllMarkets extends MakerBaseAllMarkets<DDF_MarketBaseimplements
	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory
	protected DDF_MarketServiceAllMarkets(final MarketFactory factory) {
		super(factory);
	}
	private final DDF_MessageVisitor<Void, MarketDo> visitor = new MapperDDF();
	protected void make(final DDF_MarketBase messagefinal MarketDo market) {
		message.accept(market);
	}
	public static final DDF_MarketProvider newInstance() {
		return new DDF_MarketServiceAllMarkets(new MarketFactory() {
			public MarketDo newMarket(final Instrument instrument) {
				return new VarMarketDDF(instrument);
			}
		});
	}
New to GrepCode? Check out our FAQ X