public interface IgniteSpringHelper
| Modifier and Type | Method and Description |
|---|---|
<T> T |
loadBean(InputStream stream,
String beanName)
Loads bean instance by name.
|
<T> T |
loadBean(URL url,
String beanName)
Loads bean instance by name.
|
<T> T |
loadBeanFromAppContext(Object appContext,
String beanName)
Loads bean instance by name from application context.
|
Map<Class<?>,Object> |
loadBeans(InputStream cfgStream,
Class<?>... beanClasses)
Loads bean instances that match the given types from given configuration input stream.
|
Map<Class<?>,Object> |
loadBeans(URL cfgUrl,
Class<?>... beanClasses)
Loads bean instances that match the given types from given configuration file.
|
<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> |
loadConfigurations(InputStream cfgStream,
Class<T> cls,
String... excludedProps)
Loads all configurations with given type specified within given configuration input stream.
|
IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> |
loadConfigurations(InputStream cfgStream,
String... excludedProps)
Loads all grid configurations specified within given configuration input stream.
|
<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> |
loadConfigurations(URL cfgUrl,
Class<T> cls,
String... excludedProps)
Loads all configurations with given type specified within given configuration file.
|
IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> |
loadConfigurations(URL cfgUrl,
String... excludedProps)
Loads all grid configurations specified within given configuration file.
|
String |
userVersion(ClassLoader ldr,
IgniteLogger log)
Gets user version for given class loader by checking
META-INF/ignite.xml file for userVersion attribute. |
IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, String... excludedProps) throws IgniteCheckedException
Usually Spring XML configuration file will contain only one Grid definition. Note that Grid configuration bean(s) is retrieved form configuration file by type, so the name of the Grid configuration bean is ignored.
cfgUrl - Configuration file path or URL. This cannot be null.excludedProps - Properties to exclude.IgniteCheckedException - If grid could not be started or configuration
read. This exception will be thrown also if grid with given name has already
been started or Spring XML configuration file is invalid.IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, String... excludedProps) throws IgniteCheckedException
Usually Spring XML configuration input stream will contain only one Grid definition. Note that Grid configuration bean(s) is retrieved form configuration input stream by type, so the name of the Grid configuration bean is ignored.
cfgStream - Configuration input stream. This cannot be null.excludedProps - Properties to exclude.IgniteCheckedException - If grid could not be started or configuration
read. This exception will be thrown also if grid with given name has already
been started or Spring XML configuration file is invalid.<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, Class<T> cls, String... excludedProps) throws IgniteCheckedException
cfgUrl - Configuration file path or URL. This cannot be null.cls - Required type of configuration.excludedProps - Properties to exclude.IgniteCheckedException - If configuration could not be read.<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, Class<T> cls, String... excludedProps) throws IgniteCheckedException
cfgStream - Configuration input stream. This cannot be null.cls - Required type of configuration.excludedProps - Properties to exclude.IgniteCheckedException - If configuration could not be read.Map<Class<?>,Object> loadBeans(URL cfgUrl, Class<?>... beanClasses) throws IgniteCheckedException
cfgUrl - Configuration file path or URL. This cannot be null.beanClasses - Beans classes.null.IgniteCheckedException - If failed to load configuration.<T> T loadBean(URL url, String beanName) throws IgniteCheckedException
url - Spring XML file URL.beanName - Bean name.IgniteCheckedException - In case of error.Map<Class<?>,Object> loadBeans(InputStream cfgStream, Class<?>... beanClasses) throws IgniteCheckedException
cfgStream - Input stream containing Spring XML configuration. This cannot be null.beanClasses - Beans classes.null.IgniteCheckedException - If failed to load configuration.<T> T loadBean(InputStream stream, String beanName) throws IgniteCheckedException
stream - Input stream containing Spring XML configuration.beanName - Bean name.IgniteCheckedException - In case of error.<T> T loadBeanFromAppContext(Object appContext, String beanName) throws IgniteCheckedException
appContext - Sprint application context.beanName - Bean name.IgniteCheckedException - In case of error.String userVersion(ClassLoader ldr, IgniteLogger log)
META-INF/ignite.xml file for userVersion attribute. If
ignite.xml file is not found, or user version is not specified there,
then default version (empty string) is returned.ldr - Class loader.log - Logger.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017