Business logic customization that leverages a customized repository and extended domain with explicit projection
-
Show complete lifecycle in/out of the endpoint with extended field information
-
Demonstrate handling of the customized repository and domain
-
Builds On : 00300-productExtensionExplicitProjection
-
Create spring boot autoconfiguration class
BusinessLogicCustomizationExplicitProjection, which will be referenced from META-INF/spring.factories -
Create extension (
MyAutoCoProductService) ofDefaultProductServiceadding a new method -
Use the
@Componentannotation on the extended service -
Declare the
@ComponentScanannotation on the autoconfiguration class (avoid the larger constructor injection requirements of declaring a bean for the service extension) -
Declare
@AutoConfigureBeforeon the autoconfiguration class to prioritize the service extension over Broadleaf’s own declaration