Class ModuleLifecycleLoggingBean
java.lang.Object
org.broadleafcommerce.common.logging.ModuleLifecycleLoggingBean
A simple bean that when declared in app context will cause a lifecycle
logging message to appear in the logging output.
- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorsConstructorDescriptionModuleLifecycleLoggingBean
(String moduleName, LifeCycleEvent lifeCycleEvent) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the type of life cycle event for this logging messageThe name of the module that this log message applies tovoid
init()
Initialize the bean and cause the logging message to take placevoid
setLifeCycleEvent
(LifeCycleEvent lifeCycleEvent) Set the type of life cycle event for this logging messagevoid
setModuleName
(String moduleName) Set the name of the module that this log message applies to
-
Constructor Details
-
ModuleLifecycleLoggingBean
public ModuleLifecycleLoggingBean() -
ModuleLifecycleLoggingBean
-
-
Method Details
-
init
@PostConstruct public void init()Initialize the bean and cause the logging message to take place -
getLifeCycleEvent
Retrieve the type of life cycle event for this logging message- Returns:
- life cycle event type
-
setLifeCycleEvent
Set the type of life cycle event for this logging message- Parameters:
lifeCycleEvent
- life cycle event type
-
getModuleName
The name of the module that this log message applies to- Returns:
- the module name for this logging message
-
setModuleName
Set the name of the module that this log message applies to- Parameters:
moduleName
- the module name for this logging message
-