X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fimpl%2FRestconfApplication.java;h=a5fd7bdaab2646f35e7463f9698f15ca217de11f;hb=26da3c2a206a753356b507b018052cbb9cccca7d;hp=bede249c943a08bc40bb97ccc39aebac9d2abe58;hpb=1d1424c67d9fd92141e847c63784373d91e7aa3a;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java index bede249c94..a5fd7bdaab 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.sal.rest.impl; import java.util.HashSet; @@ -9,8 +16,15 @@ import org.opendaylight.controller.sal.restconf.impl.BrokerFacade; import org.opendaylight.controller.sal.restconf.impl.ControllerContext; import org.opendaylight.controller.sal.restconf.impl.RestconfImpl; +import com.google.common.collect.ImmutableSet; + public class RestconfApplication extends Application { + @Override + public Set> getClasses() { + return ImmutableSet.>of( RestconfDocumentedExceptionMapper.class ); + } + @Override public Set getSingletons() { Set singletons = new HashSet<>(); @@ -29,4 +43,5 @@ public class RestconfApplication extends Application { return singletons; } + }