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