org.codehaus.groovy.maven.runtime.support
Class TraceSanitizerSupport

java.lang.Object
  extended by org.codehaus.groovy.maven.feature.support.ComponentSupport
      extended by org.codehaus.groovy.maven.runtime.support.TraceSanitizerSupport
All Implemented Interfaces:
Component, TraceSanitizer

public class TraceSanitizerSupport
extends ComponentSupport
implements TraceSanitizer

Provides a default stack trace sanitizer, should work with most versions of Groovy.

Version:
$Id: TraceSanitizerSupport.java 11689 2008-04-17 07:19:46Z user57 $
Author:
Jason Dillon

Field Summary
static java.lang.String[] FILTERED_PREFIXES
           
 
Fields inherited from class org.codehaus.groovy.maven.feature.support.ComponentSupport
config, feature, log
 
Fields inherited from interface org.codehaus.groovy.maven.runtime.TraceSanitizer
KEY
 
Constructor Summary
TraceSanitizerSupport(Feature feature)
           
TraceSanitizerSupport(Feature feature, Configuration config)
           
 
Method Summary
 boolean filter(java.lang.Class type)
           
 boolean filter(java.lang.String className)
           
 void print(java.lang.Throwable t)
           
 void print(java.lang.Throwable t, java.io.PrintWriter out)
           
 void print(java.lang.Throwable t, java.io.PrintWriter out, boolean deep)
           
 java.lang.Throwable sanitize(java.lang.Throwable t)
           
 java.lang.Throwable sanitize(java.lang.Throwable t, boolean deep)
           
 
Methods inherited from class org.codehaus.groovy.maven.feature.support.ComponentSupport
config, feature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.groovy.maven.feature.Component
config, feature
 

Field Detail

FILTERED_PREFIXES

public static final java.lang.String[] FILTERED_PREFIXES
Constructor Detail

TraceSanitizerSupport

public TraceSanitizerSupport(Feature feature,
                             Configuration config)

TraceSanitizerSupport

public TraceSanitizerSupport(Feature feature)
Method Detail

filter

public boolean filter(java.lang.String className)
Specified by:
filter in interface TraceSanitizer

filter

public boolean filter(java.lang.Class type)
Specified by:
filter in interface TraceSanitizer

sanitize

public java.lang.Throwable sanitize(java.lang.Throwable t,
                                    boolean deep)
Specified by:
sanitize in interface TraceSanitizer

sanitize

public java.lang.Throwable sanitize(java.lang.Throwable t)
Specified by:
sanitize in interface TraceSanitizer

print

public void print(java.lang.Throwable t,
                  java.io.PrintWriter out,
                  boolean deep)
Specified by:
print in interface TraceSanitizer

print

public void print(java.lang.Throwable t,
                  java.io.PrintWriter out)
Specified by:
print in interface TraceSanitizer

print

public void print(java.lang.Throwable t)
Specified by:
print in interface TraceSanitizer


Copyright © 2006-2008 Codehaus. All Rights Reserved.