org.apache.maven.continuum.installation
Interface InstallationService

All Known Implementing Classes:
DefaultInstallationService

public interface InstallationService

Since:
13 juin 07
Version:
$Id: InstallationService.java 1372260 2012-08-13 04:29:09Z brett $
Author:
olamy

Field Summary
static String ANT_TYPE
           
static String ENVVAR_TYPE
           
static String JDK_TYPE
           
static String MAVEN1_TYPE
           
static String MAVEN2_TYPE
           
static String ROLE
           
 
Method Summary
 Installation add(Installation installation)
           
 Installation add(Installation installation, boolean automaticProfile)
           
 void delete(Installation installation)
           
 List<Installation> getAllInstallations()
           
 List<String> getDefaultJdkInformations()
           
 String getEnvVar(String type)
           
 ExecutorConfigurator getExecutorConfigurator(String type)
           
 List<String> getExecutorConfiguratorVersion(String path, ExecutorConfigurator executorConfigurator, Profile profile)
           
 Installation getInstallation(int installationId)
           
 Installation getInstallation(String installationName)
           
 List<String> getJdkInformations(Installation installation)
           
 void update(Installation installation)
           
 

Field Detail

ROLE

static final String ROLE

JDK_TYPE

static final String JDK_TYPE
See Also:
Constant Field Values

MAVEN2_TYPE

static final String MAVEN2_TYPE
See Also:
Constant Field Values

MAVEN1_TYPE

static final String MAVEN1_TYPE
See Also:
Constant Field Values

ANT_TYPE

static final String ANT_TYPE
See Also:
Constant Field Values

ENVVAR_TYPE

static final String ENVVAR_TYPE
See Also:
Constant Field Values
Method Detail

add

Installation add(Installation installation,
                 boolean automaticProfile)
                 throws InstallationException,
                        AlreadyExistsProfileException,
                        AlreadyExistsInstallationException
Throws:
InstallationException
AlreadyExistsProfileException
AlreadyExistsInstallationException

add

Installation add(Installation installation)
                 throws InstallationException,
                        AlreadyExistsInstallationException
Throws:
InstallationException
AlreadyExistsInstallationException

update

void update(Installation installation)
            throws InstallationException,
                   AlreadyExistsInstallationException
Throws:
InstallationException
AlreadyExistsInstallationException

delete

void delete(Installation installation)
            throws InstallationException
Throws:
InstallationException

getInstallation

Installation getInstallation(int installationId)
                             throws InstallationException
Throws:
InstallationException

getInstallation

Installation getInstallation(String installationName)
                             throws InstallationException
Throws:
InstallationException

getAllInstallations

List<Installation> getAllInstallations()
                                       throws InstallationException
Throws:
InstallationException

getEnvVar

String getEnvVar(String type)

getExecutorConfigurator

ExecutorConfigurator getExecutorConfigurator(String type)
Parameters:
type -
Returns:
ExecutorConfigurator or null if unknown type

getJdkInformations

List<String> getJdkInformations(Installation installation)
                                throws InstallationException
Parameters:
installation -
Returns:
output of JAVA_HOME/bin/java -version (JAVA_HOME = installation.getVarValue()
Throws:
InstallationException

getDefaultJdkInformations

List<String> getDefaultJdkInformations()
                                       throws InstallationException
Returns:
output of JAVA_HOME/bin/java -version
Throws:
InstallationException

getExecutorConfiguratorVersion

List<String> getExecutorConfiguratorVersion(String path,
                                            ExecutorConfigurator executorConfigurator,
                                            Profile profile)
                                            throws InstallationException
Parameters:
path -
executorConfigurator - (ec)
Returns:
the cli output of $path/ec.relativePath.ec.executable ec.versionArgument
Throws:
InstallationException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.