Package ubic.gemma.core.logging.log4j
Class BuildInfoThreadContextPopulator
java.lang.Object
ubic.gemma.core.logging.log4j.BuildInfoThreadContextPopulator
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,ThreadContextPopulator
@Component
@Lazy(false)
public class BuildInfoThreadContextPopulator
extends Object
implements ThreadContextPopulator
Populate build information in the Log4j
ThreadContext.- Author:
- poirigui
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringContext key used to store the build information.Fields inherited from interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
KEY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.logging.log4j.ThreadContextPopulator
afterPropertiesSet
-
Field Details
-
BUILD_INFO_CONTEXT_KEY
Context key used to store the build information.- See Also:
-
-
Constructor Details
-
BuildInfoThreadContextPopulator
-
-
Method Details
-
getKey
Description copied from interface:ThreadContextPopulatorKey in theThreadContextthis populator is responsible for.- Specified by:
getKeyin interfaceThreadContextPopulator
-
populate
public void populate()Description copied from interface:ThreadContextPopulatorPopulate theThreadContext.This is called when the bean is initialized as per
InitializingBean.afterPropertiesSet().- Specified by:
populatein interfaceThreadContextPopulator
-