1 /** 2 * 3 * Copyright 2006 The Apache Software Foundation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 package org.apache.geronimo.deployment.plugin.jmx; 18 19 20 /** 21 * @version $Rev: 410741 $ $Date: 2006-05-31 21:35:48 -0700 (Wed, 31 May 2006) $ 22 */ 23 public class CommandContext { 24 private boolean logErrors; 25 private boolean verbose; 26 private String username; 27 private String password; 28 private boolean inPlace; 29 30 public CommandContext(boolean logErrors, 31 boolean verbose, 32 String username, 33 String password, 34 boolean inPlace) { 35 this.logErrors = logErrors; 36 this.verbose = verbose; 37 this.username = username; 38 this.password = password; 39 this.inPlace = inPlace; 40 } 41 42 public CommandContext(CommandContext prototype) { 43 this.logErrors = prototype.logErrors; 44 this.verbose = prototype.verbose; 45 this.username = prototype.username; 46 this.password = prototype.password; 47 this.inPlace = prototype.inPlace; 48 } 49 50 public boolean isLogErrors() { 51 return logErrors; 52 } 53 54 public void setLogErrors(boolean logErrors) { 55 this.logErrors = logErrors; 56 } 57 58 public boolean isVerbose() { 59 return verbose; 60 } 61 62 public void setVerbose(boolean verbose) { 63 this.verbose = verbose; 64 } 65 66 public String getUsername() { 67 return username; 68 } 69 70 public String getPassword() { 71 return password; 72 } 73 74 public void setUsername(String username) { 75 this.username = username; 76 } 77 78 public void setPassword(String password) { 79 this.password = password; 80 } 81 82 public boolean isInPlace() { 83 return inPlace; 84 } 85 86 public void setInPlace(boolean inPlace) { 87 this.inPlace = inPlace; 88 } 89 }