Package net.officefloor.spring.extension
Interface SpringSupplierExtension
-
- All Known Implementing Classes:
JaxRsSpringSupplierExtension
,SpringDataExtension
,SpringWebFluxProcedureRegistry
,SpringWebMvcProcedureRegistry
,WebFluxSpringSupplierExtension
,WebMvcSpringSupplierExtension
public interface SpringSupplierExtension
Extension toSpringSupplierSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
afterSpringLoad(AfterSpringLoadSupplierExtensionContext context)
Invoked after Spring is loaded.default void
beforeSpringLoad(BeforeSpringLoadSupplierExtensionContext context)
Invoked before Spring is loaded.default void
configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder)
Configures Spring viaSpringApplicationBuilder
.default void
decorateSpringBean(SpringBeanDecoratorContext context)
Invoked for each registered Spring bean to further decorate integration.
-
-
-
Method Detail
-
beforeSpringLoad
default void beforeSpringLoad(BeforeSpringLoadSupplierExtensionContext context) throws java.lang.Exception
Invoked before Spring is loaded.
This allows initial setup to be undertaken. It also allows capturing information on the current
Thread
as Spring loads.- Parameters:
context
-BeforeSpringLoadSupplierExtensionContext
.- Throws:
java.lang.Exception
- If fails to setup.
-
configureSpring
default void configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder) throws java.lang.Exception
Configures Spring viaSpringApplicationBuilder
.- Parameters:
builder
-SpringApplicationBuilder
.- Throws:
java.lang.Exception
- If fails to configure.
-
afterSpringLoad
default void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws java.lang.Exception
Invoked after Spring is loaded.
Allows processing captured information.
- Parameters:
context
-AfterSpringLoadSupplierExtensionContext
.- Throws:
java.lang.Exception
- If fails to complete extension configuration.
-
decorateSpringBean
default void decorateSpringBean(SpringBeanDecoratorContext context) throws java.lang.Exception
Invoked for each registered Spring bean to further decorate integration.- Parameters:
context
-SpringBeanDecoratorContext
.- Throws:
java.lang.Exception
- If fails to decorate the Spring Bean.
-
-