/** * Get or create the BeanManagerInfo for the given ClassLoader. */ private BeanManagerInfo getBeanManagerInfo(ClassLoader cl) { BeanManagerInfo bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { synchronized (this) { bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { bmi = new BeanManagerInfo(); bmpSingleton.bmInfos.put(cl, bmi); if (cl.getParent() != null && !bmpSingleton.bmInfos.containsKey(cl.getParent())) { bmpSingleton.bmInfos.put(cl.getParent(), bmi); } } } } return bmi; }
/** * Get or create the BeanManagerInfo for the given ClassLoader. */ private BeanManagerInfo getBeanManagerInfo(ClassLoader cl) { BeanManagerInfo bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { synchronized (this) { bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { bmi = new BeanManagerInfo(); bmpSingleton.bmInfos.put(cl, bmi); if (cl.getParent() != null && !bmpSingleton.bmInfos.containsKey(cl.getParent())) { bmpSingleton.bmInfos.put(cl.getParent(), bmi); } } } } return bmi; }
/** * Get or create the BeanManagerInfo for the given ClassLoader */ private BeanManagerInfo getBeanManagerInfo(ClassLoader cl) { BeanManagerInfo bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { synchronized (this) { bmi = bmpSingleton.bmInfos.get(cl); if (bmi == null) { bmi = new BeanManagerInfo(); bmpSingleton.bmInfos.put(cl, bmi); } } } return bmi; }