7a7d142813d9fcd3e0e1124353963cfe6855d912
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / restconf / handlers / DOMMountPointServiceHandler.java
1 /*
2  * Copyright (c) 2016 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.restconf.handlers;
9
10 import com.google.common.base.Preconditions;
11 import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
12
13 /**
14  * Implementation of {@link DOMMountPointServiceHandler}.
15  *
16  */
17 public class DOMMountPointServiceHandler implements Handler<DOMMountPointService> {
18
19     private final DOMMountPointService domMountPointService;
20
21     /**
22      * Prepare mount point service for Restconf services.
23      *
24      * @param domMountPointService
25      *             mount point service
26      */
27     public DOMMountPointServiceHandler(final DOMMountPointService domMountPointService) {
28         Preconditions.checkNotNull(domMountPointService);
29         this.domMountPointService = domMountPointService;
30     }
31
32     @Override
33     public DOMMountPointService get() {
34         return this.domMountPointService;
35     }
36
37 }