1 17 package org.apache.geronimo.deployment.plugin.jmx; 18 19 20 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 } | Popular Tags |