se.biltmore.tools.odttoapt.maven.plugin
Class Failure.ThreadInstance
java.lang.Object
java.lang.ThreadLocal<Failure>
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 :-).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
initialValue
public Failure initialValue()
- Provides the initial handler instance.
- Overrides:
initialValue
in class ThreadLocal<Failure>
Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.