Class EnvironmentReport
- java.lang.Object
-
- com.broadleafcommerce.common.extension.EnvironmentReport
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
public class EnvironmentReport extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
Emit a report to the console during application startup (near the beginning). The purpose of the report is to assist with troubleshooting configuration issues, especially as they relate to custom FlexPackage combinations in which different services are combined in a single JVM.Channel Information
- This section covers the configuration of Spring Cloud Stream channels encountered during autoconfiguration. The type of channel (input or output), the name, whether or not the channel is enabled, and the reason why are all pieces of information captured here. In some cases, it is expected to have disabled channel bindings (e.g. establishing read/write FlexPackage replicas), so a disabled channel does not automatically indicate a problem. However, paying special note to disabled channels (especially output channels) can help with diagnosing missing async interactions at runtime.Property Information
- This section covers the broadleaf properties configured in the system. These are all the properties that were encountered during startup for the standard Spring lifecycle for this application. Seeing the expected properties and their values can help diagnose configuration mistakes (e.g. if you define a property in the wrong FlexPackage).broadleaf.environment.report.disabled
property to true.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnvironmentReport.ChannelContext
static class
EnvironmentReport.ChannelInfo
static class
EnvironmentReport.ChannelType
-
Field Summary
Fields Modifier and Type Field Description String[]
enabledPrefixes
-
Constructor Summary
Constructors Constructor Description EnvironmentReport(org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentReportProperties
getReportProperties()
protected void
outputChannelInformation()
protected void
outputPropertyInformation()
void
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry)
void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
void
setReportProperties(EnvironmentReportProperties reportProperties)
-
-
-
Field Detail
-
enabledPrefixes
public String[] enabledPrefixes
-
-
Method Detail
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanDefinitionRegistry
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
outputPropertyInformation
protected void outputPropertyInformation()
-
outputChannelInformation
protected void outputChannelInformation()
-
getReportProperties
public EnvironmentReportProperties getReportProperties()
-
setReportProperties
public void setReportProperties(EnvironmentReportProperties reportProperties)
-
-