001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     *  contributor license agreements.  See the NOTICE file distributed with
004     *  this work for additional information regarding copyright ownership.
005     *  The ASF licenses this file to You under the Apache License, Version 2.0
006     *  (the "License"); you may not use this file except in compliance with
007     *  the License.  You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     *  Unless required by applicable law or agreed to in writing, software
012     *  distributed under the License is distributed on an "AS IS" BASIS,
013     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     *  See the License for the specific language governing permissions and
015     *  limitations under the License.
016     */
017    package org.apache.geronimo.deployment.plugin.jmx;
018    
019    
020    /**
021     * @version $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
022     */
023    public class CommandContext {
024        private boolean logErrors;
025        private boolean verbose;
026        private String username;
027        private String password;
028        private boolean inPlace;
029    
030        public CommandContext(boolean logErrors,
031                boolean verbose,
032                String username,
033                String password,
034                boolean inPlace) {
035            this.logErrors = logErrors;
036            this.verbose = verbose;
037            this.username = username;
038            this.password = password;
039            this.inPlace = inPlace;
040        }
041    
042        public CommandContext(CommandContext prototype) {
043            this.logErrors = prototype.logErrors;
044            this.verbose = prototype.verbose;
045            this.username = prototype.username;
046            this.password = prototype.password;
047            this.inPlace = prototype.inPlace;
048        }
049    
050        public boolean isLogErrors() {
051            return logErrors;
052        }
053    
054        public void setLogErrors(boolean logErrors) {
055            this.logErrors = logErrors;
056        }
057    
058        public boolean isVerbose() {
059            return verbose;
060        }
061    
062        public void setVerbose(boolean verbose) {
063            this.verbose = verbose;
064        }
065    
066        public String getUsername() {
067            return username;
068        }
069    
070        public String getPassword() {
071            return password;
072        }
073    
074        public void setUsername(String username) {
075            this.username = username;
076        }
077    
078        public void setPassword(String password) {
079            this.password = password;
080        }
081    
082        public boolean isInPlace() {
083            return inPlace;
084        }
085    
086        public void setInPlace(boolean inPlace) {
087            this.inPlace = inPlace;
088        }
089    }