+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.controller.netconf.persist.impl;
-
-import java.io.IOException;
-import java.util.Collections;
-import java.util.List;
-import org.opendaylight.controller.config.persist.api.ConfigSnapshotHolder;
-import org.opendaylight.controller.config.persist.api.Persister;
-import org.opendaylight.controller.config.persist.api.PropertiesProvider;
-import org.opendaylight.controller.config.persist.api.StorageAdapter;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class NoOpStorageAdapter implements StorageAdapter, Persister {
- private static final Logger LOG = LoggerFactory.getLogger(NoOpStorageAdapter.class);
-
- @Override
- public Persister instantiate(PropertiesProvider propertiesProvider) {
- LOG.debug("instantiate called with {}", propertiesProvider);
- return this;
- }
-
- @Override
- public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
- LOG.debug("persistConfig called with {}", holder);
- }
-
- @Override
- public List<ConfigSnapshotHolder> loadLastConfigs() throws IOException {
- LOG.debug("loadLastConfig called");
- return Collections.emptyList();
- }
-
- @Override
- public void close() {
- LOG.debug("close called");
- }
-}