01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
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: */package org.apache.geronimo.mavenplugins.geronimo.server;
19:
20: import java.util.Properties;
21: import java.util.Arrays;
22:
23: /**
24: * Container for a set of options to be passed to a JVM.
25: *
26: * @version $Rev: 476061 $ $Date: 2006-11-16 22:36:50 -0800 (Thu, 16 Nov 2006) $
27: */
28: public class OptionSet {
29: /**
30: * @parameter
31: */
32: private String id = null;
33:
34: /**
35: * @parameter
36: */
37: private String[] options = null;
38:
39: /**
40: * @parameter
41: */
42: private Properties properties = null;
43:
44: public String toString() {
45: return "{ id=" + id + ", options="
46: + (options != null ? Arrays.asList(options) : null)
47: + ", properties=" + properties + " }";
48: }
49:
50: public void setId(final String id) {
51: this .id = id;
52: }
53:
54: public String getId() {
55: return id;
56: }
57:
58: public void setOptions(final String[] options) {
59: this .options = options;
60: }
61:
62: public String[] getOptions() {
63: return options;
64: }
65:
66: public Properties getProperties() {
67: return properties;
68: }
69:
70: public void setProperties(final Properties properties) {
71: this.properties = properties;
72: }
73: }
|