/*-
 * Copyright (c) 2013 Red Hat, Inc.
 *
 * 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 org.fedoraproject.maven.installer;

import java.io.IOException;
import java.util.List;

import org.apache.maven.project.MavenProject;
import org.fedoraproject.maven.config.PackagingRule;

/**
 * @author Mikolaj Izdebski
 */
public interface ProjectInstaller
{
    List<String> getSupportedPackagingTypes();

    void installProject( MavenProject project, Package targetPackage, PackagingRule rule )
        throws ProjectInstallationException, IOException;
}

@@ -802,120 +802,1379 @@
 %0A * 
-@author Mikolaj Izdebski%0A */%0Apublic interface ProjectInstaller%0A%7B%0A    List%3CString%3E getSupportedPackagingTypes();%0A
+Component that can install some kinds of Maven artifacts.%0A * %3Cp%3E%0A * There are several Plexus components implementing this interface. Each of the components is responsible for installing%0A * some kind of artifacts.%0A * %3Cp%3E%0A * Users of this class should can either iterate over all project installer components available in Plexus container and%0A * call %7B@code getSupportedPackagingType()%7D to see which components are suitable for installing which projects, or use%0A * role hint to lookup the right component.%0A * %0A * @author Mikolaj Izdebski%0A */%0Apublic interface ProjectInstaller%0A%7B%0A    /**%0A     * Get list of supported packaging types.%0A     * %0A     * @return list of packaging types supported by this object%0A     */%0A    List%3CString%3E getSupportedPackagingTypes();%0A%0A    /**%0A     * Install Maven project into binary package.%0A     * %3Cp%3E%0A     * This method can be called only if project packaging type is on the list of supported packaging types, as returned%0A     * by %7B@code getSupportedPackagingTypes()%7D method.%0A     * %0A     * @param project Maven project to be installed%0A     * @param targetPackage binary package into which project should be installed%0A     * @param rule effective packaging rule to use%0A     * @throws ProjectInstallationException if project cannot be installed for some reason%0A     * @throws IOException if I/O error occurs when installing package files%0A     */
 %0A   

Improve javadocs for ProjectInstaller