2 * Copyright (c) 2013 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
8 package org.opendaylight.openflowplugin.openflow.md.core.session;
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;
15 public final class ExtensionSessionManagerImpl implements ExtensionSessionManager {
16 private static final Logger LOG = LoggerFactory.getLogger(ExtensionSessionManagerImpl.class);
18 private static ExtensionSessionManagerImpl INSTANCE = new ExtensionSessionManagerImpl();
20 private ExtensionConverterProvider extensionConverterProvider;
23 * Returns singleton instance.
25 public static ExtensionSessionManager getInstance() {
29 private ExtensionSessionManagerImpl() {
33 public void setExtensionConverterProvider(
34 ExtensionConverterProvider extensionConverterProvider) {
35 this.extensionConverterProvider = extensionConverterProvider;
39 public ExtensionConverterProvider getExtensionConverterProvider() {
40 return extensionConverterProvider;