public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); return runtimeInfoMap.get(beanId); }
public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); return runtimeInfoMap.get(beanId); }
public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); return runtimeInfoMap.get(beanId); }
public static void recordBeanRuntimeInfo(String beanId, BeanRuntimeInfo beanRuntimeInfo, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo existingBeanConfig = runtimeInfoMap.get(beanId); if(existingBeanConfig != null && !beanRuntimeInfo.equals(existingBeanConfig)) { throw new SmooksConfigurationException("Multiple configurations present with beanId='" + beanId + "', but the bean runtime infos are not equal i.e bean classes etc are different. Use a different beanId and the 'setOnMethod' config if needed."); } runtimeInfoMap.put(beanId, beanRuntimeInfo); }
public static void recordBeanRuntimeInfo(String beanId, BeanRuntimeInfo beanRuntimeInfo, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo existingBeanConfig = runtimeInfoMap.get(beanId); if(existingBeanConfig != null && !beanRuntimeInfo.equals(existingBeanConfig)) { throw new SmooksConfigurationException("Multiple configurations present with beanId='" + beanId + "', but the bean runtime infos are not equal i.e bean classes etc are different. Use a different beanId and the 'setOnMethod' config if needed."); } runtimeInfoMap.put(beanId, beanRuntimeInfo); }
public static void recordBeanRuntimeInfo(String beanId, BeanRuntimeInfo beanRuntimeInfo, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo existingBeanConfig = runtimeInfoMap.get(beanId); if(existingBeanConfig != null && !beanRuntimeInfo.equals(existingBeanConfig)) { throw new SmooksConfigurationException("Multiple configurations present with beanId='" + beanId + "', but the bean runtime infos are not equal i.e bean classes etc are different. Use a different beanId and the 'setOnMethod' config if needed."); } runtimeInfoMap.put(beanId, beanRuntimeInfo); }
public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, String beanClassName, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo beanRuntimeInfo = runtimeInfoMap.get(beanId); if(beanRuntimeInfo == null) { beanRuntimeInfo = new BeanRuntimeInfo(beanClassName); recordBeanRuntimeInfo(beanId, beanRuntimeInfo, appContext); } return beanRuntimeInfo; }
public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, String beanClassName, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo beanRuntimeInfo = runtimeInfoMap.get(beanId); if(beanRuntimeInfo == null) { beanRuntimeInfo = new BeanRuntimeInfo(beanClassName); recordBeanRuntimeInfo(beanId, beanRuntimeInfo, appContext); } return beanRuntimeInfo; }
public static BeanRuntimeInfo getBeanRuntimeInfo(String beanId, String beanClassName, ApplicationContext appContext) { Map<String, BeanRuntimeInfo> runtimeInfoMap = getRuntimeInfoMap(appContext); BeanRuntimeInfo beanRuntimeInfo = runtimeInfoMap.get(beanId); if(beanRuntimeInfo == null) { beanRuntimeInfo = new BeanRuntimeInfo(beanClassName); recordBeanRuntimeInfo(beanId, beanRuntimeInfo, appContext); } return beanRuntimeInfo; }