Add RoleManager and RoleContext
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / role / RoleManager.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow.role;
10
11 import javax.annotation.Nonnull;
12 import org.opendaylight.openflowplugin.api.openflow.OFPManager;
13 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
14
15 /**
16  * Manages creation and termination of role contexts.
17  * @see org.opendaylight.openflowplugin.api.openflow.role.RoleContext
18  */
19 public interface RoleManager extends OFPManager {
20     /**
21      * Create role context.
22      *
23      * @param deviceContext the device context
24      * @return the role context
25      */
26     RoleContext createContext(@Nonnull DeviceContext deviceContext);
27 }