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(URL cfgUrl,
String... excludedProps)
Creates Spring application context.
|
<T> T |
loadBean(URL url,
String beanName) |
Map<Class<?>,Object> |
loadBeans(URL cfgUrl,
Class<?>... beanClasses) |
<T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> |
loadConfigurations(URL cfgUrl,
Class<T> cl,
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> cl, 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 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015