Skip to content

Commit

Permalink
WELD-1900 Rename PROBE_CLIPPY_SUPPORT to PROBE_EMBED_INFO_SNIPPET
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba authored and jharting committed Apr 3, 2015
1 parent 8203e48 commit 7d6376f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -135,7 +135,7 @@ public enum ConfigurationKey {
PROBE_INVOCATION_MONITOR_SKIP_JAVABEAN_PROPERTIES("org.jboss.weld.probe.invocationMonitor.skipJavaBeanProperties", true),

/**
* A regular expression. If a non-empty string and the runtime class of the event object matches this pattern the event is excluded from monitoring.
* A regular expression. If a non-empty string and the runtime class of the event object matches this pattern the event is excluded from monitoring.
*/
PROBE_EVENT_MONITOR_EXCLUDE_TYPE("org.jboss.weld.probe.eventMonitor.excludeType", ""),

Expand All @@ -148,7 +148,7 @@ public enum ConfigurationKey {
/**
* If set to <code>true</code> an informative HTML snippet will be added to every response with Content-Type of value <code>text/html</code>.
*/
PROBE_CLIPPY_SUPPORT("org.jboss.weld.probe.clippySupport", true),
PROBE_EMBED_INFO_SNIPPET("org.jboss.weld.probe.embedInfoSnippet", true),

;

Expand Down
Expand Up @@ -50,11 +50,11 @@
* </p>
*
* <p>
* To disable the clippy support, set {@link ConfigurationKey#PROBE_CLIPPY_SUPPORT} to <code>false</code>. It's also possible to use the
* To disable the clippy support, set {@link ConfigurationKey#PROBE_EMBED_INFO_SNIPPET} to <code>false</code>. It's also possible to use the
* {@link ConfigurationKey#PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE} to skip the monitoring.
* </p>
*
* @see ConfigurationKey#PROBE_CLIPPY_SUPPORT
* @see ConfigurationKey#PROBE_EMBED_INFO_SNIPPET
* @see ConfigurationKey#PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE
* @author Martin Kouba
*/
Expand Down Expand Up @@ -83,7 +83,7 @@ public void init(FilterConfig filterConfig) throws ServletException {
WeldConfiguration configuration = beanManager.getServices().get(WeldConfiguration.class);

// Note that we have to use in-line CSS
if (configuration.getBooleanProperty(ConfigurationKey.PROBE_CLIPPY_SUPPORT)) {
if (configuration.getBooleanProperty(ConfigurationKey.PROBE_EMBED_INFO_SNIPPET)) {
StringBuilder builder = new StringBuilder();
builder.append("<!-- The following snippet was automatically added by Weld, see the documentation to disable this functionality -->");
builder.append("<div id=\"weld-dev-mode-info\" style=\"position: fixed !important;bottom:0;left:0;width:100%;background-color:#f8f8f8;border:2px solid silver;padding:10px;border-radius:2px;margin:0px;font-size:14px;font-family:sans-serif;color:black;\">");
Expand Down

0 comments on commit 7d6376f

Please sign in to comment.