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}.
22 public final class DOMMountPointServiceHandler implements Handler<DOMMountPointService> {
23 private final DOMMountPointService domMountPointService;
26 * Prepare mount point service for Restconf services.
28 * @param domMountPointService
32 public DOMMountPointServiceHandler(final @Reference DOMMountPointService domMountPointService) {
33 this.domMountPointService = requireNonNull(domMountPointService);
37 public static DOMMountPointServiceHandler newInstance(final DOMMountPointService domMountPointService) {
38 return new DOMMountPointServiceHandler(domMountPointService);
42 public DOMMountPointService get() {
43 return this.domMountPointService;