Commit | Line | Data |
---|---|---|
37c87032 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2016-2017 Movidius Inc. and others | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials | |
5 | * are made available under the terms of the Eclipse Public License v1.0 | |
6 | * which accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | *******************************************************************************/ | |
9 | ||
10 | package org.eclipse.tracecompass.tmf.core.symbols; | |
11 | ||
12 | import org.eclipse.jdt.annotation.Nullable; | |
13 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; | |
14 | ||
15 | /** | |
16 | * Instance of this interface can be contributed using the | |
17 | * <code>org.eclipse.tracecompass.tmf.core.symbolProvider</code> extension and is | |
18 | * used to create instances of {@link ISymbolProvider} | |
19 | * | |
20 | * @author Robert Kiss | |
21 | * | |
4b40a764 | 22 | * @since 3.0 |
37c87032 MK |
23 | */ |
24 | public interface ISymbolProviderFactory { | |
25 | ||
26 | /** | |
27 | * Create a provider for the given trace. If this factory does not know how | |
28 | * to handle the given trace it will return null; | |
29 | * | |
30 | * @param trace | |
31 | * A non-null trace | |
32 | * @return A newly created provider that can resolve symbols from the given | |
33 | * trace or null if no such provider can be created by this factory | |
34 | */ | |
35 | @Nullable ISymbolProvider createProvider(ITmfTrace trace); | |
36 | ||
37 | } |