public final class SFailFast extends Object
Initialize the static reference at startup and clear it at shutdown.
Constructor and Description |
---|
SFailFast() |
Modifier and Type | Method and Description |
---|---|
static IChecker |
getChecker()
Shortcut to checker.
|
static IFailer |
getFailer()
Shorcut to failer.
|
static IFailFast |
getFailFast()
Retrieves the setup fail-fast instance.
|
static IFailFast |
getFailFastOrNull()
Retrieves the setup instance or null, if no instance is available.
|
static void |
setFailFastOrNull(IFailFast failFastOrNull)
Set this at startup and clear it at shutdown.
|
public static IFailFast getFailFast()
If the instance is unavailable e.g. null, an IllegalStateException is thrown.
public static IFailFast getFailFastOrNull()
public static void setFailFastOrNull(IFailFast failFastOrNull)
failFastOrNull
- instance to use or null to prevent usagepublic static IChecker getChecker()
Call methods of this to check references, etc.
public static IFailer getFailer()
Call methods of this to throw an exception when a check asserts.
The MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.