/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlStream Input stream containing Spring XML configuration (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(InputStream springXmlStream, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlStream, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlPath Spring XML configuration file path (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(String springXmlPath, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlPath, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlUrl Spring XML configuration file URL (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(URL springXmlUrl, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlUrl, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads spring bean by name. * * @param springXmlPath Spring XML file path. * @param beanName Bean name. * @return Bean instance. * @throws IgniteCheckedException In case of error. */ public static <T> T loadSpringBean(String springXmlPath, String beanName) throws IgniteCheckedException { A.notNull(springXmlPath, "springXmlPath"); A.notNull(beanName, "beanName"); URL url = U.resolveSpringUrl(springXmlPath); assert url != null; return loadSpringBean(url, beanName); }
/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlPath Spring XML configuration file path (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(String springXmlPath, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlPath, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlStream Input stream containing Spring XML configuration (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(InputStream springXmlStream, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlStream, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads Spring bean by its name from given Spring XML configuration file. If bean * with such name doesn't exist, exception is thrown. * * @param springXmlUrl Spring XML configuration file URL (cannot be {@code null}). * @param beanName Bean name (cannot be {@code null}). * @return Loaded bean instance. * @throws IgniteException If bean with provided name was not found or in case any other error. */ public static <T> T loadSpringBean(URL springXmlUrl, String beanName) throws IgniteException { try { return IgnitionEx.loadSpringBean(springXmlUrl, beanName); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Loads spring bean by name. * * @param springXmlPath Spring XML file path. * @param beanName Bean name. * @return Bean instance. * @throws IgniteCheckedException In case of error. */ public static <T> T loadSpringBean(String springXmlPath, String beanName) throws IgniteCheckedException { A.notNull(springXmlPath, "springXmlPath"); A.notNull(beanName, "beanName"); URL url = U.resolveSpringUrl(springXmlPath); assert url != null; return loadSpringBean(url, beanName); }