Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 086daaa

Browse files
authored
Merge pull request #4 from sebright/expose-census-context-factory
Exposes the CensusContextFactory.
2 parents aeeb6ef + ea2a3a4 commit 086daaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/java/com/google/census/Census.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public final class Census {
2626

2727
private static final CensusContext DEFAULT = CONTEXT_FACTORY.getCurrent();
2828

29+
/** Returns the default {@link CensusContextFactory}. */
30+
public static CensusContextFactory getCensusContextFactory() {
31+
return CONTEXT_FACTORY;
32+
}
33+
2934
/** Returns the default {@link CensusContext}. */
3035
public static CensusContext getDefault() {
3136
return DEFAULT;

0 commit comments

Comments
 (0)