2 * Copyright (c) 2016 Cisco Systems Inc and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.mef.nrp.impl;
11 import org.opendaylight.yang.gen.v1.uri.onf.coremodel.corenetworkmodule.objectclasses.rev160413.GFcPort;
14 * This interface is used to request an ActivationDriver for a given MEF service fragment.
16 public interface ActivationDriverRepoService {
18 void bindBuilder(ActivationDriverBuilder builder);
20 void unbindBuilder(ActivationDriverBuilder builder);
23 * Get driver for a port.
25 * @param context blackboard for recording state during driver selection
26 * @return activation driver
27 * @throws ActivationDriverAmbiguousException when multiple drivers declare they can configure port
28 * @throws ActivationDriverNotFoundException when no driver found for port
30 ActivationDriver getDriver(GFcPort port, ActivationDriverBuilder.BuilderContext context);
33 * Get driver for two ports on a single device.
34 * @param aPort from port
35 * @param zPort to port
36 * @param context blackboard for recording state during driver selection
37 * @return activation driver
38 * @throws ActivationDriverAmbiguousException when multiple drivers declare they can configure ports
39 * @throws ActivationDriverNotFoundException when no driver found for ports
41 ActivationDriver getDriver(GFcPort aPort, GFcPort zPort, ActivationDriverBuilder.BuilderContext context);