org.broadleafcommerce.common.logging
Class ModuleLifecycleLoggingBean

java.lang.Object
  extended by 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 Summary
ModuleLifecycleLoggingBean()
           
 
Method Summary
 LifeCycleEvent getLifeCycleEvent()
          Retrieve the type of life cycle event for this logging message
 String getModuleName()
          The name of the module that this log message applies to
 void init()
           
 void setLifeCycleEvent(LifeCycleEvent lifeCycleEvent)
          Set the type of life cycle event for this logging message
 void setModuleName(String moduleName)
          Set the name of the module that this log message applies to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleLifecycleLoggingBean

public ModuleLifecycleLoggingBean()
Method Detail

init

@PostConstruct
public void init()

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


Copyright © 2013. All Rights Reserved.