Search in sources :

Example 6 with IgniteSpringHelper

use of org.apache.ignite.internal.util.spring.IgniteSpringHelper in project ignite by apache.

the class IgnitionEx method loadSpringBean.

/**
 * Loads spring bean by name.
 *
 * @param springXmlUrl Spring XML file URL.
 * @param beanName Bean name.
 * @return Bean instance.
 * @throws IgniteCheckedException In case of error.
 */
public static <T> T loadSpringBean(URL springXmlUrl, String beanName) throws IgniteCheckedException {
    A.notNull(springXmlUrl, "springXmlUrl");
    A.notNull(beanName, "beanName");
    IgniteSpringHelper spring = SPRING.create(false);
    return spring.loadBean(springXmlUrl, beanName);
}
Also used : IgniteSpringHelper(org.apache.ignite.internal.util.spring.IgniteSpringHelper)

Aggregations

IgniteSpringHelper (org.apache.ignite.internal.util.spring.IgniteSpringHelper)6 URL (java.net.URL)2 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)2 Connection (java.sql.Connection)1 Handler (java.util.logging.Handler)1 DataSource (javax.sql.DataSource)1 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)1 IgniteLogger (org.apache.ignite.IgniteLogger)1 QueryEntity (org.apache.ignite.cache.QueryEntity)1 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)1 IgniteKernal (org.apache.ignite.internal.IgniteKernal)1 GridTcpRouterConfiguration (org.apache.ignite.internal.client.router.GridTcpRouterConfiguration)1