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.MakerBase;
import  com.barchart.util.common.anno.ThreadSafe;

The DDF extension of MakerBase from the feed-base library. Sets the Market objects used by the market maker to DDF specific VarMarket.
@ThreadSafe
public class DDF_MarketService extends MakerBase<DDF_MarketBaseimplements

Parameters:
factory
	protected DDF_MarketService(final MarketFactory factory) {
		super(factory);
	}
	private final DDF_MessageVisitor<Void, MarketDo> visitor = new MapperDDF();
	public static final DDF_MarketProvider newInstance() {
		return new DDF_MarketService(new MarketFactory() {
			public MarketDo newMarket(final Instrument instrument) {
				return new VarMarketDDF(instrument);
			}
		});
	}
	protected void make(final DDF_MarketBase messagefinal MarketDo market) {
		message.accept(market);
	}
New to GrepCode? Check out our FAQ X