View Javadoc

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;
23  import java.util.Arrays;
24  
25  /**
26   * Container for a set of options to be passed to a JVM.
27   *
28   * @version $Rev: 453458 $ $Date: 2006-10-05 18:51:55 -0700 (Thu, 05 Oct 2006) $
29   */
30  public class OptionSet
31  {
32      /**
33       * @parameter
34       */
35      private String id = null;
36  
37      /**
38       * @parameter
39       */
40      private String[] options = null;
41  
42      /**
43       * @parameter
44       */
45      private Properties properties = null;
46  
47      public String 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 id) {
55          this.id = id;
56      }
57  
58      public String getId() {
59          return id;
60      }
61  
62      public void setOptions(final String[] options) {
63          this.options = options;
64      }
65  
66      public String[] getOptions() {
67          return options;
68      }
69  
70      public Properties getProperties() {
71          return properties;
72      }
73  
74      public void setProperties(final Properties properties) {
75          this.properties = properties;
76      }
77  }