001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 package org.apache.geronimo.mavenplugins.geronimo.server; 021 022 import java.util.Properties; 023 import java.util.Arrays; 024 025 /** 026 * Container for a set of options to be passed to a JVM. 027 * 028 * @version $Rev: 476061 $ $Date: 2006-11-17 01:36:50 -0500 (Fri, 17 Nov 2006) $ 029 */ 030 public class OptionSet 031 { 032 /** 033 * @parameter 034 */ 035 private String id = null; 036 037 /** 038 * @parameter 039 */ 040 private String[] options = null; 041 042 /** 043 * @parameter 044 */ 045 private Properties properties = null; 046 047 public String toString() { 048 return "{ id=" + id + 049 ", options=" + (options != null ? Arrays.asList(options) : null) + 050 ", properties=" + properties + 051 " }"; 052 } 053 054 public void setId(final String id) { 055 this.id = id; 056 } 057 058 public String getId() { 059 return id; 060 } 061 062 public void setOptions(final String[] options) { 063 this.options = options; 064 } 065 066 public String[] getOptions() { 067 return options; 068 } 069 070 public Properties getProperties() { 071 return properties; 072 } 073 074 public void setProperties(final Properties properties) { 075 this.properties = properties; 076 } 077 }