1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 * 9 * http://www.apache.org/licenses/LICENSE-2.010 * 11 * Unless required by applicable law or agreed to in writing, software12 * 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 and15 * limitations under the License.16 */17packageorg.apache.jetspeed.deployment.impl;
1819import org.apache.jetspeed.deployment.DeploymentEvent;
20import org.apache.jetspeed.deployment.DeploymentObject;
212223/***24 * <p>25 * DeploymentEventImpl26 * </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 */32publicclassDeploymentEventImpl implements DeploymentEvent
33 {
34private DeploymentObject handler;
35privateint status = STATUS_EVAL;
36protected String name;
37protected String path;
383940publicDeploymentEventImpl(DeploymentObject handler)
41 {
42super();
43this.handler = handler;
44this.name = handler.getName();
45this.path = handler.getPath();
46 }
4748publicDeploymentEventImpl(String name, String path)
49 {
50super();
51this.name = name;
52this.path = path;
53 }
5455/***56 * @see org.apache.jetspeed.deployment.DeploymentEvent#getDeploymentObject()57 */58public DeploymentObject getDeploymentObject()
59 {
60return handler;
61 }
6263/***64 * @return65 */66publicint getStatus()
67 {
68return status;
69 }
7071/***72 * @param i73 */74publicvoid setStatus(int i)
75 {
76 status = i;
77 }
7879/***80 * <p>81 * getName82 * </p>83 *84 * @see org.apache.jetspeed.deployment.DeploymentEvent#getName()85 * @return86 */87public String getName()
88 {
89return name;
90 }
91/***92 * <p>93 * getPath94 * </p>95 *96 * @see org.apache.jetspeed.deployment.DeploymentEvent#getPath()97 * @return98 */99public String getPath()
100 {
101return path;
102 }
103 }