Package net.officefloor.spring.webmvc
Class WebMvcSpringSupplierExtension
- java.lang.Object
-
- net.officefloor.spring.webmvc.WebMvcSpringSupplierExtension
-
- All Implemented Interfaces:
ServiceFactory<SpringSupplierExtension>
,SpringSupplierExtension
,SpringSupplierExtensionServiceFactory
public class WebMvcSpringSupplierExtension extends java.lang.Object implements SpringSupplierExtensionServiceFactory, SpringSupplierExtension
Web MVCSpringSupplierExtension
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebMvcSpringSupplierExtension.OfficeFloorEmbeddedTomcatConfiguration
static class
WebMvcSpringSupplierExtension.OfficeFloorServletWebServerFactory
OfficeFloor
ServletWebServerFactory
.
-
Constructor Summary
Constructors Constructor Description WebMvcSpringSupplierExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSpringLoad(AfterSpringLoadSupplierExtensionContext context)
Invoked after Spring is loaded.void
beforeSpringLoad(BeforeSpringLoadSupplierExtensionContext context)
Invoked before Spring is loaded.void
configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder)
Configures Spring viaSpringApplicationBuilder
.SpringSupplierExtension
createService(ServiceContext context)
Creates the service.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.spring.extension.SpringSupplierExtension
decorateSpringBean
-
-
-
-
Method Detail
-
createService
public SpringSupplierExtension createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<SpringSupplierExtension>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
beforeSpringLoad
public void beforeSpringLoad(BeforeSpringLoadSupplierExtensionContext context) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Invoked before Spring is loaded.
This allows initial setup to be undertaken. It also allows capturing information on the current
Thread
as Spring loads.- Specified by:
beforeSpringLoad
in interfaceSpringSupplierExtension
- Parameters:
context
-BeforeSpringLoadSupplierExtensionContext
.- Throws:
java.lang.Exception
- If fails to setup.
-
configureSpring
public void configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Configures Spring viaSpringApplicationBuilder
.- Specified by:
configureSpring
in interfaceSpringSupplierExtension
- Parameters:
builder
-SpringApplicationBuilder
.- Throws:
java.lang.Exception
- If fails to configure.
-
afterSpringLoad
public void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Invoked after Spring is loaded.
Allows processing captured information.
- Specified by:
afterSpringLoad
in interfaceSpringSupplierExtension
- Parameters:
context
-AfterSpringLoadSupplierExtensionContext
.- Throws:
java.lang.Exception
- If fails to complete extension configuration.
-
-