1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.cling.invoker.mvn.resident;
20
21 import org.apache.maven.api.cli.InvokerException;
22 import org.apache.maven.api.cli.InvokerRequest;
23 import org.apache.maven.cling.invoker.mvn.MavenContext;
24
25 public class ResidentMavenContext extends MavenContext {
26
27 protected ResidentMavenContext(InvokerRequest invokerRequest) {
28 super(invokerRequest);
29 }
30
31 @Override
32 protected void closeContainer() {
33
34 }
35
36 public void shutDown() throws InvokerException {
37 super.closeContainer();
38 }
39
40 public ResidentMavenContext copy(InvokerRequest invokerRequest) {
41 if (invokerRequest == this.invokerRequest) {
42 return this;
43 }
44 ResidentMavenContext shadow = new ResidentMavenContext(invokerRequest);
45
46
47 shadow.containerCapsule = containerCapsule;
48 shadow.lookup = lookup;
49 shadow.eventSpyDispatcher = eventSpyDispatcher;
50 shadow.maven = maven;
51
52 return shadow;
53 }
54 }