Package net.officefloor.woof
Class WoofLoaderExtensionService
- java.lang.Object
-
- net.officefloor.woof.WoofLoaderExtensionService
-
- All Implemented Interfaces:
OfficeExtensionService
,OfficeFloorExtensionService
public class WoofLoaderExtensionService extends java.lang.Object implements OfficeFloorExtensionService, OfficeExtensionService
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WoofLoaderExtensionService.WoofLoaderRunnable<R,E extends java.lang.Throwable>
Runs within a context.static interface
WoofLoaderExtensionService.WoofLoaderRunnableContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPLICATION_WOOF
Name of the WoOF configuration file.
-
Constructor Summary
Constructors Constructor Description WoofLoaderExtensionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R,E extends java.lang.Throwable>
RcontextualLoad(WoofLoaderExtensionService.WoofLoaderRunnable<R,E> runnable)
Undertakes a contextual load.void
extendOffice(OfficeArchitect officeArchitect, OfficeExtensionContext context)
Extends theOffice
.void
extendOfficeFloor(OfficeFloorDeployer officeFloorDeployer, OfficeFloorExtensionContext context)
Extends theOfficeFloor
.
-
-
-
Field Detail
-
APPLICATION_WOOF
public static final java.lang.String APPLICATION_WOOF
Name of the WoOF configuration file. This file is to exist at the root of the class path for theWoofLoaderExtensionService
to load any configuration.- See Also:
- Constant Field Values
-
-
Method Detail
-
contextualLoad
public static <R,E extends java.lang.Throwable> R contextualLoad(WoofLoaderExtensionService.WoofLoaderRunnable<R,E> runnable) throws E extends java.lang.Throwable
Undertakes a contextual load.- Type Parameters:
R
- Return type fromWoofLoaderExtensionService.WoofLoaderRunnable
.E
- PossibleThrowable
fromWoofLoaderExtensionService.WoofLoaderRunnable
.- Parameters:
runnable
-WoofLoaderExtensionService.WoofLoaderRunnable
to configure the contextual load.- Returns:
- Returned object from
WoofLoaderExtensionService.WoofLoaderRunnable
. - Throws:
E
- Potential failure.E extends java.lang.Throwable
-
extendOfficeFloor
public void extendOfficeFloor(OfficeFloorDeployer officeFloorDeployer, OfficeFloorExtensionContext context) throws java.lang.Exception
Description copied from interface:OfficeFloorExtensionService
Extends theOfficeFloor
.- Specified by:
extendOfficeFloor
in interfaceOfficeFloorExtensionService
- Parameters:
officeFloorDeployer
-OfficeFloorDeployer
.context
-OfficeFloorExtensionContext
.- Throws:
java.lang.Exception
- If fails to extend theOfficeFloor
.
-
extendOffice
public void extendOffice(OfficeArchitect officeArchitect, OfficeExtensionContext context) throws java.lang.Exception
Description copied from interface:OfficeExtensionService
Extends theOffice
.- Specified by:
extendOffice
in interfaceOfficeExtensionService
- Parameters:
officeArchitect
-OfficeArchitect
.context
-OfficeExtensionContext
.- Throws:
java.lang.Exception
- If fails to extend theOffice
.
-
-