KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > mavenplugins > geronimo > server > OptionSet


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */

19
20 package org.apache.geronimo.mavenplugins.geronimo.server;
21
22 import java.util.Properties JavaDoc;
23 import java.util.Arrays JavaDoc;
24
25 /**
26  * Container for a set of options to be passed to a JVM.
27  *
28  * @version $Rev: 476061 $ $Date: 2006-11-17 01:36:50 -0500 (Fri, 17 Nov 2006) $
29  */

30 public class OptionSet
31 {
32     /**
33      * @parameter
34      */

35     private String JavaDoc id = null;
36
37     /**
38      * @parameter
39      */

40     private String JavaDoc[] options = null;
41
42     /**
43      * @parameter
44      */

45     private Properties JavaDoc properties = null;
46
47     public String JavaDoc toString() {
48         return "{ id=" + id +
49                ", options=" + (options != null ? Arrays.asList(options) : null) +
50                ", properties=" + properties +
51                " }";
52     }
53
54     public void setId(final String JavaDoc id) {
55         this.id = id;
56     }
57
58     public String JavaDoc getId() {
59         return id;
60     }
61
62     public void setOptions(final String JavaDoc[] options) {
63         this.options = options;
64     }
65
66     public String JavaDoc[] getOptions() {
67         return options;
68     }
69
70     public Properties JavaDoc getProperties() {
71         return properties;
72     }
73
74     public void setProperties(final Properties JavaDoc properties) {
75         this.properties = properties;
76     }
77 }
78
Popular Tags