Package net.officefloor.woof
Class WoofLoaderSettings
- java.lang.Object
-
- net.officefloor.woof.WoofLoaderSettings
-
public class WoofLoaderSettings extends java.lang.Object
Settings for theWoofLoader
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WoofLoaderSettings.WoofLoaderConfiguration
Configuration for theWoofLoader
.static interface
WoofLoaderSettings.WoofLoaderConfigurer
Configurer for anOffice
.static interface
WoofLoaderSettings.WoofLoaderConfigurerContext
static interface
WoofLoaderSettings.WoofLoaderRunnable<R,E extends java.lang.Throwable>
Runs within a context.static interface
WoofLoaderSettings.WoofLoaderRunnableContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_WOOF_PATH
Default path for WoOF configuration file.
-
Constructor Summary
Constructors Constructor Description WoofLoaderSettings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R,E extends java.lang.Throwable>
RcontextualLoad(WoofLoaderSettings.WoofLoaderRunnable<R,E> runnable)
Undertakes a contextual load.static WoofLoaderSettings.WoofLoaderConfiguration
getWoofLoaderConfiguration(java.lang.String officeName)
Obtains theWoofLoaderSettings.WoofLoaderConfiguration
for anOffice
.
-
-
-
Field Detail
-
DEFAULT_WOOF_PATH
public static final java.lang.String DEFAULT_WOOF_PATH
Default path for WoOF configuration file.- See Also:
- Constant Field Values
-
-
Method Detail
-
getWoofLoaderConfiguration
public static WoofLoaderSettings.WoofLoaderConfiguration getWoofLoaderConfiguration(java.lang.String officeName)
Obtains theWoofLoaderSettings.WoofLoaderConfiguration
for anOffice
.- Parameters:
officeName
- Name ofOffice
.- Returns:
WoofLoaderSettings.WoofLoaderConfiguration
for theOffice
.
-
contextualLoad
public static <R,E extends java.lang.Throwable> R contextualLoad(WoofLoaderSettings.WoofLoaderRunnable<R,E> runnable) throws E extends java.lang.Throwable
Undertakes a contextual load.- Type Parameters:
R
- Return type fromWoofLoaderSettings.WoofLoaderRunnable
.E
- PossibleThrowable
fromWoofLoaderSettings.WoofLoaderRunnable
.- Parameters:
runnable
-WoofLoaderSettings.WoofLoaderRunnable
to configure the contextual load.- Returns:
- Returned object from
WoofLoaderSettings.WoofLoaderRunnable
. - Throws:
E
- Potential failure.E extends java.lang.Throwable
-
-