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 String
Recommended prefix to use to organizeThreadContext
keys, -
Method Summary
-
Field Details
-
KEY_PREFIX
Recommended prefix to use to organizeThreadContext
keys,- See Also:
-
-
Method Details
-
getKey
String getKey()Key in theThreadContext
this populator is responsible for. -
populate
void populate()Populate theThreadContext
.This is called when the bean is initialized as per
InitializingBean.afterPropertiesSet()
. -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-