馬老師Prometheus-基礎(chǔ)入門到源碼剖析
?public <T extends DataSource> void addDataSource(DataSourceKey key, T data) {
? ? ? ?datasources.put(key, data);
? ?}
? ?@Override
? ?public Object determineCurrentLookupKey() {
? ? ? ?return DataSourceHolder.getDataSourceKey();
? ?}
? ?@Override
標(biāo)簽: