public class ModulePresentUtil extends Object
Utility class that checks for the presence of registered Broadleaf modules.
ConditionalOnBroadleafModule},
OnBroadleafModuleCondition}| Modifier and Type | Field and Description |
|---|---|
static List<BroadleafModuleRegistration> |
MODULE_REGISTRATIONS |
| Constructor and Description |
|---|
ModulePresentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allPresent(List<String> modulesInQuestion)
Checks that every module in the list is registered.
|
static boolean |
isPresent(BroadleafModuleRegistration.BroadleafModuleEnum moduleInQuestion)
Checks if the given module is registered
|
static boolean |
isPresent(String moduleInQuestion)
This version takes a String instead of a
BroadleafModuleRegistration.BroadleafModuleEnum but operates in the same way by checking to see if
a particular Broadleaf module has registered itself |
public static final List<BroadleafModuleRegistration> MODULE_REGISTRATIONS
public static boolean isPresent(@Nonnull BroadleafModuleRegistration.BroadleafModuleEnum moduleInQuestion)
moduleInQuestion - the module that should be checked#isPresent(String)}public static boolean allPresent(@Nonnull List<String> modulesInQuestion)
modulesInQuestion - list of modules that should be checkedisPresent(String)public static boolean isPresent(@Nonnull String moduleInQuestion)
BroadleafModuleRegistration.BroadleafModuleEnum but operates in the same way by checking to see if
a particular Broadleaf module has registered itselfmoduleInQuestion - a String that maps to ModuleLifecycleLoggingBean.getModuleName()Copyright © 2019. All rights reserved.