]> git.basschouten.com Git - openhab-addons.git/blob
3f49cab8c63b9ca739a4a1287a0e9563accd5c0f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.gpstracker.internal.provider;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.gpstracker.internal.handler.TrackerHandler;
18
19 /**
20  * Functional interface for checking tracker registration.
21  *
22  * @author Gabor Bicskei - Initial contribution
23  */
24 @NonNullByDefault
25 public interface TrackerRegistry {
26
27     /**
28      * Returns a handler for a given id
29      *
30      * @param trackerId the id of the tracker
31      * @return the handler
32      */
33     @Nullable
34     TrackerHandler getTrackerHandler(String trackerId);
35 }