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 org.apache.maven.continuum.execution.ExecutorConfigurator;
23 import org.apache.maven.continuum.model.system.Installation;
24 import org.apache.maven.continuum.model.system.Profile;
25 import org.apache.maven.continuum.profile.AlreadyExistsProfileException;
26
27 import java.util.List;
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 Installation getInstallation( String installationName )
64 throws InstallationException;
65
66 public List<Installation> getAllInstallations()
67 throws InstallationException;
68
69 public String getEnvVar( String type );
70
71
72
73
74
75 public ExecutorConfigurator getExecutorConfigurator( String type );
76
77
78
79
80
81
82
83 public List<String> getJdkInformations( Installation installation )
84 throws InstallationException;
85
86
87
88
89
90 public List<String> getDefaultJdkInformations()
91 throws InstallationException;
92
93
94
95
96
97
98
99 public List<String> getExecutorConfiguratorVersion( String path, ExecutorConfigurator executorConfigurator,
100 Profile profile )
101 throws InstallationException;
102
103 }