KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > service > resource > ResourceAdapterASForm


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: ResourceAdapterASForm.java,v 1.1 2005/04/26 16:19:06 ehardesty Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.service.resource;
27
28 import java.net.URL JavaDoc;
29 import java.util.ArrayList JavaDoc;
30 import java.util.Collections JavaDoc;
31 import java.util.Enumeration JavaDoc;
32 import java.util.Iterator JavaDoc;
33 import java.util.List JavaDoc;
34 import java.util.Properties JavaDoc;
35
36 import javax.management.ObjectName JavaDoc;
37
38 import javax.servlet.http.HttpServletRequest JavaDoc;
39
40 import org.apache.struts.action.ActionErrors;
41 import org.apache.struts.action.ActionForm;
42 import org.apache.struts.action.ActionMapping;
43 import org.objectweb.jonas.webapp.jonasadmin.Jlists;
44 import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx;
45 import org.objectweb.jonas_rar.deployment.api.RequiredConfigPropertyDesc;
46
47
48 /**
49  * @author Michel-Ange ANTON
50  */

51 public class ResourceAdapterASForm extends ActionForm {
52
53 // --------------------------------------------------------- Properties variables
54

55     private String JavaDoc description = null;
56     private String JavaDoc name = null;
57     private ArrayList JavaDoc listProperties = new ArrayList JavaDoc();
58     private ObjectName JavaDoc oName = null;
59
60     private ArrayList JavaDoc listUsedByMdb = new ArrayList JavaDoc();
61
62 // --------------------------------------------------------- Public Methods
63

64     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
65     }
66
67     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
68         ActionErrors oErrors = new ActionErrors();
69         return oErrors;
70     }
71
72 // --------------------------------------------------------- Properties Methods
73

74     public String JavaDoc getDescription() {
75         return description;
76     }
77
78     public void setDescription(String JavaDoc description) {
79         this.description = description;
80     }
81
82     public String JavaDoc getName() {
83         return name;
84     }
85
86     public void setName(String JavaDoc name) {
87         this.name = name;
88     }
89
90     public ArrayList JavaDoc getListProperties() {
91         return listProperties;
92     }
93
94     public void setListProperties(List JavaDoc properties) {
95         this.listProperties.clear();
96         RequiredConfigPropertyDesc rcProp = null;
97         // Get the req properties
98
for (Iterator JavaDoc r = properties.iterator(); r.hasNext();) {
99             rcProp = (RequiredConfigPropertyDesc) r.next();
100             String JavaDoc reqName = rcProp.getConfigPropertyName();
101             this.listProperties.add(reqName);
102         }
103     }
104
105     public void setOName(ObjectName JavaDoc oName) {
106         this.oName = oName;
107     }
108     
109     public ObjectName JavaDoc getOName() {
110         return oName;
111     }
112
113     public ArrayList JavaDoc getListUsedByMdb() {
114         return listUsedByMdb;
115     }
116
117     public void setListUsedByMdb(ArrayList JavaDoc listUsedByMdb) {
118         this.listUsedByMdb = listUsedByMdb;
119     }
120     
121 }
Popular Tags