Class MockServerOfficeExtensionService
- java.lang.Object
-
- net.officefloor.server.servlet.test.MockServerOfficeExtensionService
-
- All Implemented Interfaces:
OfficeExtensionService
,OfficeExtensionServiceFactory
,ServiceFactory<OfficeExtensionService>
public class MockServerOfficeExtensionService extends java.lang.Object implements OfficeExtensionService, OfficeExtensionServiceFactory
OfficeExtensionService
to mockHttpServer
setup.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MockServerOfficeExtensionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OfficeExtensionService
createService(ServiceContext context)
Creates the service.void
extendOffice(OfficeArchitect officeArchitect, OfficeExtensionContext context)
Extends theOffice
.
-
-
-
Method Detail
-
createService
public OfficeExtensionService createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<OfficeExtensionService>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
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
.
-
-