Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 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.MarketProviderBase;
import  com.barchart.feed.base.sub.SubscriptionHandler;
public class DDF_ConsumerMarketProvider extends MarketProviderBase<DDF_MarketBase
		implements DDF_MarketProvider {
	protected static final Logger log = LoggerFactory.getLogger(
	protected DDF_ConsumerMarketProvider(final MarketFactory factory,
			final SubscriptionHandler handler) {
		super(factorynew DDF_MetadataServiceWrapper(), handler);
	}
	private final DDF_MessageVisitor<Void, MarketDo> visitor = new MapperDDF();
	public static final DDF_ConsumerMarketProvider newInstance(
			final SubscriptionHandler handler) {
		return new DDF_ConsumerMarketProvider(new MarketFactory() {
			public MarketDo newMarket(final Instrument instrument) {
				return new VarMarketEntityDDF(instrument);
			}
		}, handler);
	}
	protected void make(final DDF_MarketBase messagefinal MarketDo market) {
		message.accept(market);
	}
New to GrepCode? Check out our FAQ X