01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.deployment.plugin.jmx;
17:
18: /**
19: * @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $
20: */
21: public class CommandContext {
22: private boolean logErrors;
23: private boolean verbose;
24: private String username;
25: private String password;
26: private boolean inPlace;
27:
28: public CommandContext(boolean logErrors, boolean verbose,
29: String username, String password, boolean inPlace) {
30: this .logErrors = logErrors;
31: this .verbose = verbose;
32: this .username = username;
33: this .password = password;
34: this .inPlace = inPlace;
35: }
36:
37: public CommandContext(CommandContext prototype) {
38: this .logErrors = prototype.logErrors;
39: this .verbose = prototype.verbose;
40: this .username = prototype.username;
41: this .password = prototype.password;
42: this .inPlace = prototype.inPlace;
43: }
44:
45: public boolean isLogErrors() {
46: return logErrors;
47: }
48:
49: public void setLogErrors(boolean logErrors) {
50: this .logErrors = logErrors;
51: }
52:
53: public boolean isVerbose() {
54: return verbose;
55: }
56:
57: public void setVerbose(boolean verbose) {
58: this .verbose = verbose;
59: }
60:
61: public String getUsername() {
62: return username;
63: }
64:
65: public String getPassword() {
66: return password;
67: }
68:
69: public void setUsername(String username) {
70: this .username = username;
71: }
72:
73: public void setPassword(String password) {
74: this .password = password;
75: }
76:
77: public boolean isInPlace() {
78: return inPlace;
79: }
80:
81: public void setInPlace(boolean inPlace) {
82: this.inPlace = inPlace;
83: }
84: }
|