KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > common > ModuleItem


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ModuleItem.java,v 1.1 2004/06/11 08:16:53 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.common;
27
28 /**
29  * @author Adriana.Danes@objectweb.org
30  *
31  * ModuleItem objects are used to show management information concerning
32  * modules in a J2EEApplication.
33  */

34 public class ModuleItem implements NameItem {
35     /**
36      * Module name
37      */

38     private String JavaDoc name = null;
39     /**
40      * OBJECT_NAME of the J2EEDeployedObject corresponding to the module
41      */

42     private String JavaDoc objectName = null;
43     /**
44      * Path of the source file
45      */

46     private String JavaDoc filePath = null;
47
48     /**
49      * Default constructor
50      */

51     public ModuleItem() {
52     }
53     /**
54      * Constructor
55      * @param name the module's name
56      * @param objectName the OBJECT_NAME of the J2EEDeployedObject corresponding to the module
57      * @param filePath the path of the source file
58      */

59     public ModuleItem(String JavaDoc name, String JavaDoc objectName, String JavaDoc filePath) {
60         this.name = name;
61         this.objectName = objectName;
62         this.filePath = filePath;
63     }
64
65     /**
66      * @return Returns the module's name.
67      */

68     public String JavaDoc getName() {
69         return name;
70     }
71     /**
72      * @param name the module name
73      */

74     public void setName(String JavaDoc name) {
75         this.name = name;
76     }
77     /**
78      * @return Returns the OBJECT_NAME of the corresponding MBean.
79      */

80     public String JavaDoc getObjectName() {
81         return objectName;
82     }
83     /**
84      * @param objectName The OBJECT_NAME to set.
85      */

86     public void setObjectName(String JavaDoc objectName) {
87         this.objectName = objectName;
88     }
89     /**
90      * @return Returns the filePath.
91      */

92     public String JavaDoc getFilePath() {
93         return filePath;
94     }
95     /**
96      * @param filePath The filePath to set.
97      */

98     public void setFilePath(String JavaDoc filePath) {
99         this.filePath = filePath;
100     }
101
102 }
103
Popular Tags