Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.barchart.feed.ddf.market.provider;
 
 
 import  com.barchart.feed.api.consumer.MetadataService;
 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.MarketplaceBase;
import  com.barchart.feed.base.sub.SubscriptionHandler;
public class DDF_Marketplace extends MarketplaceBase<DDF_MarketBaseimplements DDF_MarketProvider {
	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory.getLogger(
	protected DDF_Marketplace(
			final MarketFactory factory,
			final MetadataService instLookup,
			final SubscriptionHandler handler) {
		super(factoryinstLookuphandler);
	}
	private final DDF_MessageVisitor<Void, MarketDo> visitor = new MapperDDF();
	public static final DDF_Marketplace newInstance(
			final SubscriptionHandler handler) {
		return new DDF_Marketplace(new MarketFactory() {
			public MarketDo newMarket(final Instrument instrument) {
				return new VarMarketEntityDDF(instrument);
			}
		}, new DDF_MetadataServiceWrapper(), handler);
	}
	protected void make(DDF_MarketBase message, MarketDo market) {
		message.accept(market);
	}
New to GrepCode? Check out our FAQ X