Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
  *
  * The software in this package is published under the terms of the CPAL v1.0
  * license, a copy of which has been included with this distribution in the
  * LICENSE.txt file.
  */
 package com.sitewhere.device.communication;
 
Abstract base class for com.sitewhere.spi.device.communication.IOutboundCommandRouter implementations.

Author(s):
Derek
public abstract class OutboundCommandRouter extends LifecycleComponent implements IOutboundCommandRouter {

List of destinations serviced by the router
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.sitewhere.spi.device.communication.IOutboundCommandRouter#initialize(java.util
	 * .List)
	 */
	public void initialize(List<ICommandDestination<?, ?>> destinationListthrows SiteWhereException {
		// Create map of destinations by id.
		for (ICommandDestination<?, ?> destination : destinationList) {
			.put(destination.getDestinationId(), destination);
		}
	}
		return ;
	}
New to GrepCode? Check out our FAQ X