1 package org.apache.maven.continuum.installation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.List;
23
24 import org.apache.maven.continuum.execution.ExecutorConfigurator;
25 import org.apache.maven.continuum.model.system.Installation;
26 import org.apache.maven.continuum.model.system.Profile;
27 import org.apache.maven.continuum.profile.AlreadyExistsProfileException;
28
29
30
31
32
33
34 public interface InstallationService
35 {
36 String ROLE = InstallationService.class.getName();
37
38 String JDK_TYPE = "jdk";
39
40 String MAVEN2_TYPE = "maven2";
41
42 String MAVEN1_TYPE = "maven1";
43
44 String ANT_TYPE = "ant";
45
46 String ENVVAR_TYPE = "envvar";
47
48 public Installation add( Installation installation, boolean automaticProfile )
49 throws InstallationException, AlreadyExistsProfileException, AlreadyExistsInstallationException;
50
51 public Installation add( Installation installation )
52 throws InstallationException, AlreadyExistsInstallationException;
53
54 public void update( Installation installation )
55 throws InstallationException, AlreadyExistsInstallationException;
56
57 public void delete( Installation installation )
58 throws InstallationException;
59
60 public Installation getInstallation( int installationId )
61 throws InstallationException;
62
63 public List<Installation> getAllInstallations()
64 throws InstallationException;
65
66 public String getEnvVar( String type );
67
68
69
70
71
72 public ExecutorConfigurator getExecutorConfigurator( String type );
73
74
75
76
77
78
79
80 public List<String> getJdkInformations( Installation installation )
81 throws InstallationException;
82
83
84
85
86
87 public List<String> getDefaultJdkInformations()
88 throws InstallationException;
89
90
91
92
93
94
95
96 public List<String> getExecutorConfiguratorVersion( String path, ExecutorConfigurator executorConfigurator, Profile profile )
97 throws InstallationException;
98
99 }