public interface FrameworkCommonClasspathPropertySource
A holder for a folder containing a common.properties
file to be added to the Spring Environment
in a programmatic way without Spring Boot and with very specific
ordering semantics. This is generally only used within the Broadleaf Framework and supporting modules. This assumes that the location is on the
classpath as this drives the creation of a ClassPathResource
. To write your custom one of these, implementations should add an entry to
META-INF/spring.factories
like:
org.broadleafcommerce.common.config.FrameworkCommonClasspathPropertySource=org.broadleafcommerce.common.config.BroadleafCommonPropertySource
Any properties resolved by these classes have a lower precedence than any BroadleafSharedOverrideProfileAwarePropertySource
. However, these have a higher
precedence than any @PropertySource annotations. Given the ordering mentioned in this Spring Boot doc
properties resolved by these classes come immediately before the @PropertySource annotations.
DefaultOrderFrameworkCommonClasspathPropertySource}
,
BroadleafSharedOverrideProfileAwarePropertySource}
,
BroadleafEnvironmentConfiguringApplicationListener}
Modifier and Type | Field and Description |
---|---|
static int |
ADMIN_MODULE_ORDER |
static int |
BROADLEAF_COMMON_ORDER
All of the property configurations registered by the core framework (e.g.
|
static int |
CMS_ORDER |
static int |
DEFAULT_ORDER |
static int |
FRAMEWORK_ORDER |
static int |
FRAMEWORK_WEB_ORDER |
static int |
OPEN_ADMIN_ORDER |
static int |
PROFILE_ORDER |
static int |
PROFILE_WEB_ORDER |
Modifier and Type | Method and Description |
---|---|
String |
getClasspathFolder()
A folder on the classpath that contains a
common.properties file. |
static final int BROADLEAF_COMMON_ORDER
static final int PROFILE_ORDER
static final int PROFILE_WEB_ORDER
static final int FRAMEWORK_ORDER
static final int FRAMEWORK_WEB_ORDER
static final int OPEN_ADMIN_ORDER
static final int ADMIN_MODULE_ORDER
static final int CMS_ORDER
static final int DEFAULT_ORDER
String getClasspathFolder()
common.properties
file. Note that this cannot be prefixed with "classpath:"
or any of those
varieties since this drives the creation of an ClassPathResource
already based on this location.Copyright © 2022. All rights reserved.