/*******************************************************************************
 * Copyright (c) 2016 Movidius Inc. and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 *******************************************************************************/

package org.eclipse.tracecompass.internal.analysis.profiling.ui.symbols;

import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.tracecompass.tmf.core.symbols.ISymbolProvider;
import org.eclipse.tracecompass.tmf.core.symbols.ISymbolProviderFactory;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;

/**
 * Basic symbol provider factory that can handle any trace. It will create a
 * {@link BasicSymbolProvider}.
 *
 * @author Robert Kiss
 *
 */
@NonNullByDefault
public class BasicSymbolProviderFactory implements ISymbolProviderFactory {

    @Override
    public @NonNull ISymbolProvider createProvider(ITmfTrace trace) {
        /* This provider can apply to any trace */
        return new BasicSymbolProvider(trace);
    }

}
