2 * Copyright (c) 2016 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.restconf.nb.rfc8040.handlers;
10 import static java.util.Objects.requireNonNull;
12 import javax.inject.Inject;
13 import javax.inject.Singleton;
14 import org.apache.aries.blueprint.annotation.service.Reference;
15 import org.opendaylight.mdsal.dom.api.DOMMountPointService;
18 * Implementation of {@link DOMMountPointServiceHandler}.
21 public final class DOMMountPointServiceHandler implements Handler<DOMMountPointService> {
22 private final DOMMountPointService domMountPointService;
25 * Prepare mount point service for Restconf services.
27 * @param domMountPointService
31 public DOMMountPointServiceHandler(final @Reference DOMMountPointService domMountPointService) {
32 this.domMountPointService = requireNonNull(domMountPointService);
36 public DOMMountPointService get() {
37 return this.domMountPointService;