Enable plugins to add REST views for /plugins/<plugin-id>/

Change-Id: I3fff58bb4babcb06ba4a5e1df6400febed891995
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-08-31 15:32:54 +02:00
parent c70b7107f1
commit 1b256dfd08
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.httpd.restapi;
import com.google.gerrit.server.plugins.PluginsCollection;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
@Singleton
public class PluginsRestApiServlet extends RestApiServlet {
private static final long serialVersionUID = 1L;
@Inject
PluginsRestApiServlet(RestApiServlet.Globals globals,
Provider<PluginsCollection> plugins) {
super(globals, plugins);
}
}