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 Object
implements SpringSupplierExtensionServiceFactory, SpringSupplierExtension
Web MVC
SpringSupplierExtension.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked after Spring is loaded.voidInvoked before Spring is loaded.voidconfigureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder) Configures Spring viaSpringApplicationBuilder.createService(ServiceContext context) Creates the service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.spring.extension.SpringSupplierExtension
decorateSpringBean
-
Constructor Details
-
WebMvcSpringSupplierExtension
public WebMvcSpringSupplierExtension()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<SpringSupplierExtension>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
beforeSpringLoad
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:
Exception- If fails to setup.
-
configureSpring
public void configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder) throws Exception Description copied from interface:SpringSupplierExtensionConfigures Spring viaSpringApplicationBuilder.- Specified by:
configureSpringin interfaceSpringSupplierExtension- Parameters:
builder-SpringApplicationBuilder.- Throws:
Exception- If fails to configure.
-
afterSpringLoad
Description copied from interface:SpringSupplierExtensionInvoked after Spring is loaded.
Allows processing captured information.
- Specified by:
afterSpringLoadin interfaceSpringSupplierExtension- Parameters:
context-AfterSpringLoadSupplierExtensionContext.- Throws:
Exception- If fails to complete extension configuration.
-