01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
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: * <p>
24: * DeploymentEventImpl
25: * </p>
26: *
27: * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
28: * @version $Id: DeploymentEventImpl.java 517124 2007-03-12 08:10:25Z ate $
29: *
30: */
31: public class DeploymentEventImpl implements DeploymentEvent {
32: private DeploymentObject handler;
33: private int status = STATUS_EVAL;
34: protected String name;
35: protected String path;
36:
37: public DeploymentEventImpl(DeploymentObject handler) {
38: super ();
39: this .handler = handler;
40: this .name = handler.getName();
41: this .path = handler.getPath();
42: }
43:
44: public DeploymentEventImpl(String name, String path) {
45: super ();
46: this .name = name;
47: this .path = path;
48: }
49:
50: /**
51: * @see org.apache.jetspeed.deployment.DeploymentEvent#getDeploymentObject()
52: */
53: public DeploymentObject getDeploymentObject() {
54: return handler;
55: }
56:
57: /**
58: * @return
59: */
60: public int getStatus() {
61: return status;
62: }
63:
64: /**
65: * @param i
66: */
67: public void setStatus(int i) {
68: status = i;
69: }
70:
71: /**
72: * <p>
73: * getName
74: * </p>
75: *
76: * @see org.apache.jetspeed.deployment.DeploymentEvent#getName()
77: * @return
78: */
79: public String getName() {
80: return name;
81: }
82:
83: /**
84: * <p>
85: * getPath
86: * </p>
87: *
88: * @see org.apache.jetspeed.deployment.DeploymentEvent#getPath()
89: * @return
90: */
91: public String getPath() {
92: return path;
93: }
94: }
|