Author: jdonnerstag
Date: Wed Jul 21 19:52:54 2010
New Revision: 966389

URL: http://svn.apache.org/viewvc?rev=966389&view=rev
Log:
applied WICKET-2952 Exposes Application DebugSettings related functionality for 
JMX

Modified:
    
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettings.java
    
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettingsMBean.java

Modified: 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettings.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettings.java?rev=966389&r1=966388&r2=966389&view=diff
==============================================================================
--- 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettings.java 
(original)
+++ 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettings.java 
Wed Jul 21 19:52:54 2010
@@ -66,4 +66,85 @@ public class DebugSettings implements De
        {
                application.getDebugSettings().setComponentUseCheck(check);
        }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#setOutputComponentPath(boolean)
+        */
+       public void setOutputComponentPath(boolean enabled)
+       {
+               application.getDebugSettings().setOutputComponentPath(enabled);
+       }
+
+       /**
+        * @see org.apache.wicket.jmx.DebugSettingsMBean#isOutputComponentPath()
+        */
+       public boolean isOutputComponentPath()
+       {
+               return application.getDebugSettings().isOutputComponentPath();
+       }
+
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#setOutputMarkupContainerClassName(boolean)
+        */
+       public void setOutputMarkupContainerClassName(boolean enable)
+       {
+               
application.getDebugSettings().setOutputMarkupContainerClassName(enable);
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#isOutputMarkupContainerClassName()
+        */
+       public boolean isOutputMarkupContainerClassName()
+       {
+               return 
application.getDebugSettings().isOutputMarkupContainerClassName();
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#isLinePreciseReportingOnAddComponentEnabled()
+        */
+       public boolean isLinePreciseReportingOnAddComponentEnabled()
+       {
+               return 
application.getDebugSettings().isLinePreciseReportingOnAddComponentEnabled();
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#setLinePreciseReportingOnAddComponentEnabled(boolean)
+        */
+       public void setLinePreciseReportingOnAddComponentEnabled(boolean enable)
+       {
+               
application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(enable);
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#isLinePreciseReportingOnNewComponentEnabled()
+        */
+       public boolean isLinePreciseReportingOnNewComponentEnabled()
+       {
+               return 
application.getDebugSettings().isLinePreciseReportingOnNewComponentEnabled();
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#setLinePreciseReportingOnNewComponentEnabled(boolean)
+        */
+       public void setLinePreciseReportingOnNewComponentEnabled(boolean enable)
+       {
+               
application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(enable);
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#setDevelopmentUtilitiesEnabled(boolean)
+        */
+       public void setDevelopmentUtilitiesEnabled(boolean enable)
+       {
+               
application.getDebugSettings().setDevelopmentUtilitiesEnabled(enable);
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.DebugSettingsMBean#isDevelopmentUtilitiesEnabled()
+        */
+       public boolean isDevelopmentUtilitiesEnabled()
+       {
+               return 
application.getDebugSettings().isDevelopmentUtilitiesEnabled();
+       }
 }

Modified: 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettingsMBean.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettingsMBean.java?rev=966389&r1=966388&r2=966389&view=diff
==============================================================================
--- 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettingsMBean.java
 (original)
+++ 
wicket/trunk/wicket-jmx/src/main/java/org/apache/wicket/jmx/DebugSettingsMBean.java
 Wed Jul 21 19:52:54 2010
@@ -52,4 +52,88 @@ public interface DebugSettingsMBean
         * @param check
         */
        void setComponentUseCheck(boolean check);
+
+
+       /**
+        * If set to <code>true</code> wicket will output component path in a 
<code>wicket:path</code>
+        * attribute of the component tag. This can be useful for debugging and 
automating tests.
+        * 
+        * @param enabled
+        */
+       public void setOutputComponentPath(boolean enabled);
+
+       /**
+        * @see #setOutputComponentPath(boolean)
+        * @return <code>true</code> if output component path feature is 
enabled, <code>false</code>
+        *         otherwise
+        */
+       public boolean isOutputComponentPath();
+
+       /**
+        * Enables wrapping output of markup container in html comments that 
contain markup container's
+        * class name. (Useful for determining which part of page belongs to 
which markup file).
+        * 
+        * @param enable
+        */
+       public void setOutputMarkupContainerClassName(boolean enable);
+
+       /**
+        * Returns whether the output of markup container's should be wrapped 
by comments containing the
+        * container's class name.
+        * 
+        * @return true if the markup container's class name should be written 
to response
+        */
+       public boolean isOutputMarkupContainerClassName();
+
+       /**
+        * Returns status of line precise error reporting for added components 
that are not present in
+        * the markup: it points to the line where the component was added to 
the hierarchy in your Java
+        * classes. This can cause a significant decrease in performance, do 
not use in customer facing
+        * applications.
+        * 
+        * @return true if the line precise error reporting is enabled
+        */
+       public boolean isLinePreciseReportingOnAddComponentEnabled();
+
+       /**
+        * Enables line precise error reporting for added components that are 
not present in the markup:
+        * it points to the line where the component was added to the hierarchy 
in your Java classes.
+        * This can cause a significant decrease in performance, do not use in 
customer facing
+        * applications.
+        * 
+        * @param enable
+        */
+       public void setLinePreciseReportingOnAddComponentEnabled(boolean 
enable);
+
+       /**
+        * Returns status of line precise error reporting for new components 
that are not present in the
+        * markup: it points to the line where the component was created in 
your Java classes. This can
+        * cause a significant decrease in performance, do not use in customer 
facing applications.
+        * 
+        * @return true if the line precise error reporting is enabled
+        */
+       public boolean isLinePreciseReportingOnNewComponentEnabled();
+
+       /**
+        * Enables line precise error reporting for new components that are not 
present in the markup:
+        * it points to the line where the component was created in your Java 
classes. This can cause a
+        * significant decrease in performance, do not use in customer facing 
applications.
+        * 
+        * @param enable
+        */
+       public void setLinePreciseReportingOnNewComponentEnabled(boolean 
enable);
+
+       /**
+        * Enables all of the panels and pages, etc, from wicket-devutils 
package.
+        * 
+        * @param enable
+        */
+       public void setDevelopmentUtilitiesEnabled(boolean enable);
+
+       /**
+        * Are all of the panels and pages, etc, from wicket-devutils package 
enabled?
+        * 
+        * @return true if all of the panels and pages, etc, from 
wicket-devutils package are enabled
+        */
+       public boolean isDevelopmentUtilitiesEnabled();
 }


Reply via email to