se.biltmore.tools.odttoapt.maven.plugin
Class Failure.ThreadInstance

java.lang.Object
  extended by java.lang.ThreadLocal<Failure>
      extended by se.biltmore.tools.odttoapt.maven.plugin.Failure.ThreadInstance
Enclosing class:
Failure

private static class Failure.ThreadInstance
extends ThreadLocal<Failure>

Provides a thread safe instance of the failure handler. This is probably overkill since I doubt maven builds will ever be multithreaded, but I decided to do it this way anyhow just for the heck of it, if nothing else :-).


Constructor Summary
Failure.ThreadInstance(boolean dontFail, PrintStream failStream)
          Creates a new ThreadInstance.
 
Method Summary
 Failure initialValue()
          Provides the initial handler instance.
 
Methods inherited from class java.lang.ThreadLocal
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Failure.ThreadInstance

public Failure.ThreadInstance(boolean dontFail,
                              PrintStream failStream)
Creates a new ThreadInstance.

Parameters:
dontFail - true to only display a message without breaking the build.
Method Detail

initialValue

public Failure initialValue()
Provides the initial handler instance.

Overrides:
initialValue in class ThreadLocal<Failure>


Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.