question: returns the singleton contextfactory instance , constructing it if necessary . when the instance is constructed , this method checks if the file hadoop-metrics . properties exists on the class path . if it exists , it must be in the format defined by java.util.properties , and all the properties in the file are set as attributes on the newly created contextfactory instance . concode_field_sep String DEFAULT_CONTEXT_CLASSNAME concode_elem_sep ContextFactory theFactory concode_elem_sep String PROPERTIES_FILE concode_elem_sep Map<String,MetricsContext> contextMap concode_elem_sep Map<String,Object> attributeMap concode_elem_sep Map<String,MetricsContext> nullContextMap concode_elem_sep String CONTEXT_CLASS_SUFFIX concode_field_sep void setAttribute concode_elem_sep Object getAttribute concode_elem_sep String[] getAttributeNames concode_elem_sep MetricsContext getNullContext concode_elem_sep void setAttributes concode_elem_sep void removeAttribute concode_elem_sep MetricsContext getContext concode_elem_sep MetricsContext getContext concode_elem_sep Collection<MetricsContext> getAllContexts
target: ContextFactory function ( ) { if ( theFactory == null ) { theFactory = new ContextFactory ( ) ; theFactory . setAttributes ( ) ; } return theFactory ; }