blob: 7899d0c78f2f7c3e19e1c854a6b23e26ce12df8b [file] [log] [blame]
alshabib77b88482015-04-07 15:47:50 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
alshabib77b88482015-04-07 15:47:50 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Andrea Campanella238d96e2016-01-20 11:52:02 -080016package org.onosproject.net.driver;
alshabib77b88482015-04-07 15:47:50 -070017
Jonathan Hart17d00452015-04-21 17:10:00 -070018import org.apache.felix.scr.annotations.Component;
Thomas Vachuska866b46a2015-04-30 00:26:55 -070019import org.apache.felix.scr.annotations.Reference;
20import org.apache.felix.scr.annotations.ReferenceCardinality;
alshabib77b88482015-04-07 15:47:50 -070021
alshabib77b88482015-04-07 15:47:50 -070022/**
Thomas Vachuska43de6ee2017-03-15 15:45:23 -070023 * Abstract bootstrapper for loading and registering driver definitions that
24 * are dependent on the default driver definitions.
alshabib77b88482015-04-07 15:47:50 -070025 */
Andrea Campanella238d96e2016-01-20 11:52:02 -080026@Component
Thomas Vachuska43de6ee2017-03-15 15:45:23 -070027public abstract class AbstractDriverLoader extends AbstractIndependentDriverLoader {
alshabib77b88482015-04-07 15:47:50 -070028
Thomas Vachuska866b46a2015-04-30 00:26:55 -070029 @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
Thomas Vachuska43de6ee2017-03-15 15:45:23 -070030 protected DefaultDriverProviderService defaultDriverProviderService;
Thomas Vachuska866b46a2015-04-30 00:26:55 -070031
Thomas Vachuska800a7a42016-02-16 16:11:13 -080032 /**
33 * Creates a new loader for resource with the specified path.
34 *
35 * @param path drivers definition XML resource path
36 */
37 protected AbstractDriverLoader(String path) {
Thomas Vachuska43de6ee2017-03-15 15:45:23 -070038 super(path);
alshabib77b88482015-04-07 15:47:50 -070039 }
40
alshabib77b88482015-04-07 15:47:50 -070041}