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 Log4jThreadContext
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
Fields Modifier and Type Field Description static String
KEY_PREFIX
Recommended prefix to use to organizeThreadContext
keys,
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
afterPropertiesSet()
String
getKey()
Key in theThreadContext
this populator is responsible for.void
populate()
Populate theThreadContext
.
-
-
-
Field Detail
-
KEY_PREFIX
static final String KEY_PREFIX
Recommended prefix to use to organizeThreadContext
keys,- See Also:
- Constant Field Values
-
-
Method Detail
-
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()
.
-
-