/*******************************************************************************
* Copyright (c) 2013, 2014 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tcf.locator.services;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.ILocatorModel;
import org.eclipse.tcf.te.tcf.locator.interfaces.services.ILocatorModelService;
/**
* Abstract locator model service base implementation.
*/
public abstract class AbstractLocatorModelService extends PlatformObject implements ILocatorModelService {
// Reference to the parent locator model
private final ILocatorModel locatorModel;
/**
* Constructor.
*
* @param parentModel The parent locator model instance. Must not be <code>null</code>.
*/
public AbstractLocatorModelService(ILocatorModel parentModel) {
Assert.isNotNull(parentModel);
locatorModel = parentModel;
}
/* (non-Javadoc)
* @see org.eclipse.tcf.te.tcf.locator.interfaces.services.IPeerModelService#getPeerModel()
*/
@Override
public final ILocatorModel getLocatorModel() {
return locatorModel;
}
}