DataSource function ( ) { try { return this . applicationContext . getBean ( DataSource . class ) ; } catch ( NoSuchBeanDefinitionException loc0 ) { return null ; } }
attempt to locate the primary datasource i.e. either the only data sourceavailable or the one amongst the candidates marked as primary . return null if there no primary data source could be found . concode_field_sep ApplicationContext applicationContext concode_elem_sep String DATASOURCE_SUFFIX concode_elem_sep Map<String,DataSourcePoolMetadata> metadataByPrefix concode_elem_sep Collection<DataSourcePoolMetadataProvider> providers concode_field_sep String createPrefix concode_elem_sep void initialize concode_elem_sep Collection<Metric<?>> metrics concode_elem_sep void addMetric