1 package org.apache.maven.lifecycle.internal;
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.execution.MavenExecutionResult;
23 import org.apache.maven.session.scope.internal.SessionScope;
24
25
26
27
28
29
30
31
32
33 public class ReactorContext
34 {
35 private final MavenExecutionResult result;
36
37 private final ProjectIndex projectIndex;
38
39 private final ClassLoader originalContextClassLoader;
40
41 private final ReactorBuildStatus reactorBuildStatus;
42
43 private final SessionScope.Memento sessionScope;
44
45 public ReactorContext( MavenExecutionResult result, ProjectIndex projectIndex,
46 ClassLoader originalContextClassLoader, ReactorBuildStatus reactorBuildStatus,
47 SessionScope.Memento sessionScope )
48 {
49 this.result = result;
50 this.projectIndex = projectIndex;
51 this.originalContextClassLoader = originalContextClassLoader;
52 this.reactorBuildStatus = reactorBuildStatus;
53 this.sessionScope = sessionScope;
54 }
55
56 public ReactorBuildStatus getReactorBuildStatus()
57 {
58 return reactorBuildStatus;
59 }
60
61 public MavenExecutionResult getResult()
62 {
63 return result;
64 }
65
66 public ProjectIndex getProjectIndex()
67 {
68 return projectIndex;
69 }
70
71 public ClassLoader getOriginalContextClassLoader()
72 {
73 return originalContextClassLoader;
74 }
75
76
77
78
79 public SessionScope.Memento getSessionScopeMemento()
80 {
81 return sessionScope;
82 }
83 }