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 classWebMvcSpringSupplierExtension.OfficeFloorEmbeddedTomcatConfigurationstatic classWebMvcSpringSupplierExtension.OfficeFloorServletWebServerFactoryOfficeFloorServletWebServerFactory.
-
Constructor Summary
Constructors Constructor Description WebMvcSpringSupplierExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSpringLoad(AfterSpringLoadSupplierExtensionContext context)Invoked after Spring is loaded.voidbeforeSpringLoad(BeforeSpringLoadSupplierExtensionContext context)Invoked before Spring is loaded.voidconfigureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder)Configures Spring viaSpringApplicationBuilder.SpringSupplierExtensioncreateService(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:ServiceFactoryCreates the service.- Specified by:
createServicein 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:SpringSupplierExtensionInvoked before Spring is loaded.
This allows initial setup to be undertaken. It also allows capturing information on the current
Threadas Spring loads.- Specified by:
beforeSpringLoadin 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.ExceptionDescription copied from interface:SpringSupplierExtensionConfigures Spring viaSpringApplicationBuilder.- Specified by:
configureSpringin 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:SpringSupplierExtensionInvoked after Spring is loaded.
Allows processing captured information.
- Specified by:
afterSpringLoadin interfaceSpringSupplierExtension- Parameters:
context-AfterSpringLoadSupplierExtensionContext.- Throws:
java.lang.Exception- If fails to complete extension configuration.
-
-