Author: adc
Date: Mon Mar 28 04:54:11 2005
New Revision: 159232

URL: http://svn.apache.org/viewcvs?view=rev&rev=159232
Log:
Prime JMXDeploymentManager with a CommandContext that has full debugging turned 
on.  If this default context ever gets used, it's because something really bad 
has happened and you may as well have full debugging turned on.

Modified:
    
geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java

Modified: 
geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java
URL: 
http://svn.apache.org/viewcvs/geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java?view=diff&r1=159231&r2=159232
==============================================================================
--- 
geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java
 (original)
+++ 
geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java
 Mon Mar 28 04:54:11 2005
@@ -51,21 +51,23 @@
 import org.apache.geronimo.kernel.jmx.KernelMBean;
 import org.apache.geronimo.kernel.management.State;
 
+
 /**
- *
- *
  * @version $Rev$ $Date$
  */
 public class JMXDeploymentManager implements DeploymentManager {
     private JMXConnector jmxConnector;
     private MBeanServerConnection mbServerConnection;
     private KernelMBean kernel;
-       private CommandContext commandContext;
+    private CommandContext commandContext;
 
     public JMXDeploymentManager(JMXConnector jmxConnector) throws IOException {
         this.jmxConnector = jmxConnector;
         mbServerConnection = jmxConnector.getMBeanServerConnection();
         kernel = new KernelDelegate(mbServerConnection);
+        commandContext = new CommandContext();
+        commandContext.setLogErrors(true);
+        commandContext.setVerbose(true);
     }
 
     public void release() {
@@ -264,17 +266,17 @@
         throw new InvalidModuleException("Not supported");
     }
 
-       public void setCommandContext(CommandContext commandContext) {
-               this.commandContext = commandContext;
-       }
-    
+    public void setCommandContext(CommandContext commandContext) {
+        this.commandContext = commandContext;
+    }
+
     public static class CommandContext {
         private boolean logErrors;
         private boolean verbose;
-        
+
         public CommandContext() {
         }
-        
+
         public boolean isLogErrors() {
             return logErrors;
         }
@@ -282,11 +284,11 @@
         public void setLogErrors(boolean logErrors) {
             this.logErrors = logErrors;
         }
-        
+
         public boolean isVerbose() {
             return verbose;
         }
-        
+
         public void setVerbose(boolean verbose) {
             this.verbose = verbose;
         }


Reply via email to