KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > deployers > spi > MissingDependency


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2006, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.deployers.spi;
23
24 import java.io.Serializable JavaDoc;
25
26 /**
27  * MissingDependency.
28  *
29  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
30  * @version $Revision: 1.1 $
31  */

32 public class MissingDependency implements Serializable JavaDoc
33 {
34    /** The serialVersionUID */
35    private static final long serialVersionUID = -1159684023853245283L;
36    
37    /** The name */
38    private String JavaDoc name;
39    
40    /** The dependency */
41    private String JavaDoc dependency;
42    
43    /** The required state */
44    private String JavaDoc requiredState;
45    
46    /** The actual state */
47    private String JavaDoc actualState;
48
49    /**
50     * For serialization
51     */

52    public MissingDependency()
53    {
54    }
55
56    /**
57     * Create a new MissingDependency.
58     *
59     * @param name the name
60     * @param dependency the dependency
61     * @param requiredState the required state
62     * @param actualState the actual state
63     */

64    public MissingDependency(String JavaDoc name, String JavaDoc dependency, String JavaDoc requiredState, String JavaDoc actualState)
65    {
66       this.name = name;
67       this.dependency = dependency;
68       this.requiredState = requiredState;
69       this.actualState = actualState;
70    }
71
72    /**
73     * Get the actualState.
74     *
75     * @return the actualState.
76     */

77    public String JavaDoc getActualState()
78    {
79       return actualState;
80    }
81
82    /**
83     * Get the dependency.
84     *
85     * @return the dependency.
86     */

87    public String JavaDoc getDependency()
88    {
89       return dependency;
90    }
91
92    /**
93     * Get the name.
94     *
95     * @return the name.
96     */

97    public String JavaDoc getName()
98    {
99       return name;
100    }
101
102    /**
103     * Get the requiredState.
104     *
105     * @return the requiredState.
106     */

107    public String JavaDoc getRequiredState()
108    {
109       return requiredState;
110    }
111 }
112
Popular Tags