1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.deployment.impl;
18
19 import org.apache.jetspeed.deployment.DeploymentEvent;
20 import org.apache.jetspeed.deployment.DeploymentObject;
21
22
23 /***
24 * <p>
25 * DeploymentEventImpl
26 * </p>
27 *
28 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
29 * @version $Id: DeploymentEventImpl.java 517124 2007-03-12 08:10:25Z ate $
30 *
31 */
32 public class DeploymentEventImpl implements DeploymentEvent
33 {
34 private DeploymentObject handler;
35 private int status = STATUS_EVAL;
36 protected String name;
37 protected String path;
38
39
40 public DeploymentEventImpl(DeploymentObject handler)
41 {
42 super();
43 this.handler = handler;
44 this.name = handler.getName();
45 this.path = handler.getPath();
46 }
47
48 public DeploymentEventImpl(String name, String path)
49 {
50 super();
51 this.name = name;
52 this.path = path;
53 }
54
55 /***
56 * @see org.apache.jetspeed.deployment.DeploymentEvent#getDeploymentObject()
57 */
58 public DeploymentObject getDeploymentObject()
59 {
60 return handler;
61 }
62
63 /***
64 * @return
65 */
66 public int getStatus()
67 {
68 return status;
69 }
70
71 /***
72 * @param i
73 */
74 public void setStatus(int i)
75 {
76 status = i;
77 }
78
79 /***
80 * <p>
81 * getName
82 * </p>
83 *
84 * @see org.apache.jetspeed.deployment.DeploymentEvent#getName()
85 * @return
86 */
87 public String getName()
88 {
89 return name;
90 }
91 /***
92 * <p>
93 * getPath
94 * </p>
95 *
96 * @see org.apache.jetspeed.deployment.DeploymentEvent#getPath()
97 * @return
98 */
99 public String getPath()
100 {
101 return path;
102 }
103 }