Fix checkstyle
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / session / ExtensionSessionManagerImpl.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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 package org.opendaylight.openflowplugin.openflow.md.core.session;
9
10 import org.opendaylight.openflowplugin.extension.api.core.extension.ExtensionConverterProvider;
11 import org.opendaylight.openflowplugin.extension.api.core.session.ExtensionSessionManager;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
14
15 public final class ExtensionSessionManagerImpl implements ExtensionSessionManager {
16     private static final Logger LOG = LoggerFactory.getLogger(ExtensionSessionManagerImpl.class);
17
18     private static ExtensionSessionManagerImpl INSTANCE = new ExtensionSessionManagerImpl();
19
20     private ExtensionConverterProvider extensionConverterProvider;
21
22     /**
23      * Returns singleton instance.
24      */
25     public static ExtensionSessionManager getInstance() {
26         return INSTANCE;
27     }
28
29     private ExtensionSessionManagerImpl() {
30     }
31
32     @Override
33     public void setExtensionConverterProvider(
34             ExtensionConverterProvider extensionConverterProvider) {
35         this.extensionConverterProvider = extensionConverterProvider;
36     }
37
38     @Override
39     public ExtensionConverterProvider getExtensionConverterProvider() {
40         return extensionConverterProvider;
41     }
42 }