Remove Handler interface
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / handlers / ActionServiceHandler.java
1 /*
2  * Copyright (C) 2019 Ericsson Software Technology AB. 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.nb.rfc8040.handlers;
9
10 import static java.util.Objects.requireNonNull;
11
12 import javax.inject.Inject;
13 import javax.inject.Singleton;
14 import org.apache.aries.blueprint.annotation.service.Reference;
15 import org.eclipse.jdt.annotation.NonNull;
16 import org.opendaylight.mdsal.dom.api.DOMActionService;
17
18 /**
19  * Implementation of {@link ActionServiceHandler}.
20  */
21 // FIXME: remove this class
22 @Singleton
23 public class ActionServiceHandler {
24     private final @NonNull DOMActionService actionService;
25
26     /**
27      * Set DOMActionService.
28      *
29      * @param actionService
30      *             DOMActionService
31      */
32     @Inject
33     public ActionServiceHandler(final @Reference DOMActionService actionService) {
34         this.actionService = requireNonNull(actionService);
35     }
36
37     public @NonNull DOMActionService get() {
38         return this.actionService;
39     }
40 }