Choice and case resolving in JSON output
[controller.git] / opendaylight / netconf / config-persister-impl / src / main / java / org / opendaylight / controller / netconf / persist / impl / NoOpStorageAdapter.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
9 package org.opendaylight.controller.netconf.persist.impl;
10
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.config.persist.api.storage.StorageAdapter;
13 import org.osgi.framework.BundleContext;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
16
17 import java.io.IOException;
18
19 public class NoOpStorageAdapter implements StorageAdapter {
20     private static final Logger logger = LoggerFactory.getLogger(NoOpStorageAdapter.class);
21
22     @Override
23     public void setProperties(BundleContext bundleContext) {
24         logger.debug("setProperties called with {}", bundleContext);
25     }
26
27     @Override
28     public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
29         logger.debug("persistConfig called with {}", holder);
30     }
31
32     @Override
33     public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
34         logger.debug("loadLastConfig called");
35         return Optional.absent();
36     }
37
38     @Override
39     public void close() throws IOException {
40         logger.debug("close called");
41     }
42 }