package org.menina.tone.client.reload;


import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Created by Menina on 2017/6/10.
 */
public class ConfiguredBeansHolder {

    private static Map<String, Set<String>> configuredBeanNamesMap = new HashMap<>();

    public static Set<String> getConfiguredBeans(String propertyName){
        return configuredBeanNamesMap.get(propertyName);
    }

    public static void recordConfiguredBean(String propertyName, String beanName){
        if(!configuredBeanNamesMap.containsKey(propertyName)){
            configuredBeanNamesMap.put(propertyName,  new HashSet<String>());
        }

        configuredBeanNamesMap.get(propertyName).add(beanName);
    }
}

@@ -247,31 +247,45 @@
 ng, 
-Set%3CString%3E%3E configured
+Map%3CString, Set%3CString%3E%3E%3E placeholder
 Bean
@@ -330,16 +330,28 @@
 c static
+ Map%3CString,
  Set%3CStr
@@ -354,16 +354,17 @@
 %3CString%3E
+%3E
  getConf
@@ -383,27 +383,26 @@
 String p
-ropertyName
+laceholder
 )%7B%0A     
@@ -411,26 +411,27 @@
  return 
-configured
+placeholder
 BeanName
@@ -440,27 +440,26 @@
 ap.get(p
-ropertyName
+laceholder
 );%0A    %7D
@@ -511,16 +511,36 @@
 (String 
+placeholder, String 
 property
@@ -575,38 +575,220 @@
     if(!
-configuredBeanNamesMap
+placeholderBeanNamesMap.containsKey(placeholder))%7B%0A            placeholderBeanNamesMap.put(placeholder, new HashMap%3CString, Set%3CString%3E%3E());%0A        %7D%0A%0A        if(!placeholderBeanNamesMap.get(placeholder)
 .contain
@@ -816,34 +816,35 @@
             
-configured
+placeholder
 BeanNamesMap
@@ -840,24 +840,41 @@
 eanNamesMap.
+get(placeholder).
 put(property
@@ -878,17 +878,16 @@
 rtyName,
- 
  new Has
@@ -926,18 +926,19 @@
     
-configured
+placeholder
 Bean
@@ -950,16 +950,33 @@
 Map.get(
+placeholder).get(
 property

fix bug，映射关系：占位符 -> 类属性名称 -> 包含这些属性的bean名称