KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > deployment > plugin > jmx > CommandContext


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
22  */

23 public class CommandContext {
24     private boolean logErrors;
25     private boolean verbose;
26     private String JavaDoc username;
27     private String JavaDoc password;
28     private boolean inPlace;
29
30     public CommandContext(boolean logErrors,
31             boolean verbose,
32             String JavaDoc username,
33             String JavaDoc 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 JavaDoc getUsername() {
67         return username;
68     }
69
70     public String JavaDoc getPassword() {
71         return password;
72     }
73
74     public void setUsername(String JavaDoc username) {
75         this.username = username;
76     }
77
78     public void setPassword(String JavaDoc 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