1
2
3
4
5
6
7
8 package org.apache.maven.plugin.lifecycle;
9
10
11
12
13
14
15 public class LifecycleConfiguration
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private java.util.List<Lifecycle> lifecycles;
27
28
29
30
31 private String modelEncoding = "UTF-8";
32
33
34
35
36
37
38
39
40
41
42
43 public void addLifecycle( Lifecycle lifecycle )
44 {
45 if ( !(lifecycle instanceof Lifecycle) )
46 {
47 throw new ClassCastException( "LifecycleConfiguration.addLifecycles(lifecycle) parameter must be instanceof " + Lifecycle.class.getName() );
48 }
49 getLifecycles().add( lifecycle );
50 }
51
52
53
54
55
56
57 public java.util.List<Lifecycle> getLifecycles()
58 {
59 if ( this.lifecycles == null )
60 {
61 this.lifecycles = new java.util.ArrayList<Lifecycle>();
62 }
63
64 return this.lifecycles;
65 }
66
67
68
69
70
71
72
73 public String getModelEncoding()
74 {
75 return modelEncoding;
76 }
77
78
79
80
81
82
83 public void removeLifecycle( Lifecycle lifecycle )
84 {
85 if ( !(lifecycle instanceof Lifecycle) )
86 {
87 throw new ClassCastException( "LifecycleConfiguration.removeLifecycles(lifecycle) parameter must be instanceof " + Lifecycle.class.getName() );
88 }
89 getLifecycles().remove( lifecycle );
90 }
91
92
93
94
95
96
97 public void setLifecycles( java.util.List<Lifecycle> lifecycles )
98 {
99 this.lifecycles = lifecycles;
100 }
101
102
103
104
105
106
107 public void setModelEncoding( String modelEncoding )
108 {
109 this.modelEncoding = modelEncoding;
110 }
111
112
113 }