Class ModuleLifecycleLoggingBean

java.lang.Object
org.broadleafcommerce.common.logging.ModuleLifecycleLoggingBean

public class ModuleLifecycleLoggingBean extends Object
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 Details

    • ModuleLifecycleLoggingBean

      public ModuleLifecycleLoggingBean()
    • ModuleLifecycleLoggingBean

      public ModuleLifecycleLoggingBean(String moduleName, LifeCycleEvent lifeCycleEvent)
  • Method Details

    • init

      @PostConstruct public void init()
      Initialize the bean and cause the logging message to take place
    • getLifeCycleEvent

      public LifeCycleEvent getLifeCycleEvent()
      Retrieve the type of life cycle event for this logging message
      Returns:
      life cycle event type
    • setLifeCycleEvent

      public void setLifeCycleEvent(LifeCycleEvent lifeCycleEvent)
      Set the type of life cycle event for this logging message
      Parameters:
      lifeCycleEvent - life cycle event type
    • getModuleName

      public String getModuleName()
      The name of the module that this log message applies to
      Returns:
      the module name for this logging message
    • setModuleName

      public void setModuleName(String moduleName)
      Set the name of the module that this log message applies to
      Parameters:
      moduleName - the module name for this logging message