Package ubic.gemma.core.logging.log4j
Interface ThreadContextPopulator
- All Superinterfaces:
org.springframework.beans.factory.InitializingBean
- All Known Implementing Classes:
BuildInfoThreadContextPopulator,UserDetailsThreadContextPopulator
public interface ThreadContextPopulator
extends org.springframework.beans.factory.InitializingBean
Interface for populating the Log4j
ThreadContext with custom information.
Each populator implementation is responsible for populating a key. It may be done immediately in populate()
or at a later time.
- Author:
- poirigui
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRecommended prefix to use to organizeThreadContextkeys, -
Method Summary
-
Field Details
-
KEY_PREFIX
Recommended prefix to use to organizeThreadContextkeys,- See Also:
-
-
Method Details
-
getKey
String getKey()Key in theThreadContextthis populator is responsible for. -
populate
void populate()Populate theThreadContext.This is called when the bean is initialized as per
InitializingBean.afterPropertiesSet(). -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-