public class IgniteSpringHelperImpl extends Object implements IgniteSpringHelper
Modifier and Type | Field and Description |
---|---|
static String |
IGNITE_XML_PATH
Path to
ignite.xml file. |
Constructor and Description |
---|
IgniteSpringHelperImpl() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.context.ApplicationContext |
applicationContext(InputStream cfgStream,
String... excludedProps)
Creates Spring application context.
|
static org.springframework.context.ApplicationContext |
applicationContext(URL cfgUrl,
String... excludedProps)
Creates Spring application context.
|
<T> T |
loadBean(InputStream cfgStream,
String beanName) |
<T> T |
loadBean(URL url,
String beanName) |
<T> T |
loadBeanFromAppContext(Object appContext,
String beanName) |
Map<Class<?>,Object> |
loadBeans(InputStream cfgStream,
Class<?>... beanClasses) |
Map<Class<?>,Object> |
loadBeans(URL cfgUrl,
Class<?>... beanClasses) |
<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> |
loadConfigurations(InputStream cfgStream,
Class<T> cls,
String... excludedProps) |
IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> |
loadConfigurations(InputStream cfgStream,
String... excludedProps) |
<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> |
loadConfigurations(URL cfgUrl,
Class<T> cls,
String... excludedProps) |
IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> |
loadConfigurations(URL cfgUrl,
String... excludedProps) |
String |
userVersion(ClassLoader ldr,
IgniteLogger log) |
public static final String IGNITE_XML_PATH
ignite.xml
file.public IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, String... excludedProps) throws IgniteCheckedException
loadConfigurations
in interface IgniteSpringHelper
IgniteCheckedException
public <T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, Class<T> cls, String... excludedProps) throws IgniteCheckedException
loadConfigurations
in interface IgniteSpringHelper
IgniteCheckedException
public IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, String... excludedProps) throws IgniteCheckedException
loadConfigurations
in interface IgniteSpringHelper
IgniteCheckedException
public <T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, Class<T> cls, String... excludedProps) throws IgniteCheckedException
loadConfigurations
in interface IgniteSpringHelper
IgniteCheckedException
public Map<Class<?>,Object> loadBeans(URL cfgUrl, Class<?>... beanClasses) throws IgniteCheckedException
loadBeans
in interface IgniteSpringHelper
IgniteCheckedException
public <T> T loadBean(URL url, String beanName) throws IgniteCheckedException
loadBean
in interface IgniteSpringHelper
IgniteCheckedException
public Map<Class<?>,Object> loadBeans(InputStream cfgStream, Class<?>... beanClasses) throws IgniteCheckedException
loadBeans
in interface IgniteSpringHelper
IgniteCheckedException
public <T> T loadBean(InputStream cfgStream, String beanName) throws IgniteCheckedException
loadBean
in interface IgniteSpringHelper
IgniteCheckedException
public <T> T loadBeanFromAppContext(Object appContext, String beanName) throws IgniteCheckedException
loadBeanFromAppContext
in interface IgniteSpringHelper
IgniteCheckedException
public String userVersion(ClassLoader ldr, IgniteLogger log)
userVersion
in interface IgniteSpringHelper
public static org.springframework.context.ApplicationContext applicationContext(URL cfgUrl, String... excludedProps) throws IgniteCheckedException
IgniteConfiguration
then it is removed before the bean is instantiated.
For example, streamerConfiguration
can be excluded from the configs that Visor uses.cfgUrl
- Resource where config file is located.excludedProps
- Properties to be excluded.IgniteCheckedException
- If configuration could not be read.public static org.springframework.context.ApplicationContext applicationContext(InputStream cfgStream, String... excludedProps) throws IgniteCheckedException
IgniteConfiguration
then it is removed before the bean is instantiated.
For example, streamerConfiguration
can be excluded from the configs that Visor uses.cfgStream
- Stream where config file is located.excludedProps
- Properties to be excluded.IgniteCheckedException
- If configuration could not be read.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017