public interface BroadleafModuleRegistration
Provides the ability for modules to register themselves with Broadleaf to be used with ConditionalOnBroadleafModule
and ModulePresentUtil
in order to provide different behavior in inter-module dependencies.
Module implementations should be registered in a spring.factories
file like so:
org.broadleafcommerce.common.condition.BroadleafModuleRegistration=com.broadleafcommerce.mymodule.registration.MyModuleRegistration
In order to preserve compile-time checking, additional modules should be added to the BroadleafModuleRegistration.BroadleafModuleEnum
. However, if they aren't,
this can always be checked at runtime instead by just looking for the String-based module name.
OnBroadleafModuleCondition}
,
ConditionalOnBroadleafModule}
,
ModuleLifecycleLoggingBean}
,
SpringFactoriesLoader}
Modifier and Type | Interface and Description |
---|---|
static class |
BroadleafModuleRegistration.BroadleafModuleEnum
List of modules that are known to have declared a
BroadleafModuleRegistration in their spring.factories . |
Modifier and Type | Method and Description |
---|---|
String |
getModuleName()
The module name that is being registered.
|
String getModuleName()
ModuleLifecycleLoggingBean
.Copyright © 2022. All rights reserved.