blob: b7de500ec5bc33e71eb5a7076792e593e6037dad [file] [log] [blame]
// Copyright (C) 2015 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.googlesource.gerrit.plugins.rabbitmq.solver;
import com.google.gerrit.extensions.annotations.PluginData;
import com.google.gerrit.extensions.annotations.PluginName;
import com.google.gerrit.server.config.SitePaths;
import com.google.inject.Inject;
import com.googlesource.gerrit.plugins.rabbitmq.solver.version.V1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
public class SolverImpl implements Solver {
private static final Logger LOGGER = LoggerFactory.getLogger(SolverImpl.class);
private final Solver solver;
@Inject
public SolverImpl(
@PluginName final String pluginName,
@PluginData final File pluginData,
final SitePaths sites
) {
this.solver = new V1(pluginName, pluginData, sites);
}
public void solve() {
solver.solve();
}
}