Class IgniteSpringHelperImpl
- java.lang.Object
-
- org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
-
- All Implemented Interfaces:
IgniteSpringHelper
public class IgniteSpringHelperImpl extends Object implements IgniteSpringHelper
Spring configuration helper.
-
-
Field Summary
Fields Modifier and Type Field Description static StringIGNITE_XML_PATHPath toignite.xmlfile.
-
Constructor Summary
Constructors Constructor Description IgniteSpringHelperImpl()
-
Method Summary
-
-
-
Field Detail
-
IGNITE_XML_PATH
public static final String IGNITE_XML_PATH
Path toignite.xmlfile.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConfigurations
public IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, String... excludedProps) throws IgniteCheckedException
- Specified by:
loadConfigurationsin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadConfigurations
public <T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(URL cfgUrl, Class<T> cls, String... excludedProps) throws IgniteCheckedException
- Specified by:
loadConfigurationsin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadConfigurations
public IgniteBiTuple<Collection<IgniteConfiguration>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, String... excludedProps) throws IgniteCheckedException
- Specified by:
loadConfigurationsin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadConfigurations
public <T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, Class<T> cls, String... excludedProps) throws IgniteCheckedException
- Specified by:
loadConfigurationsin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadConfigurations
public <T> IgniteBiTuple<Collection<T>,? extends GridSpringResourceContext> loadConfigurations(InputStream cfgStream, Class<T> cls, boolean expEnabled, String... excludedProps) throws IgniteCheckedException
- Specified by:
loadConfigurationsin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadBeans
public IgniteBiTuple<Map<Class<?>,Collection>,? extends GridSpringResourceContext> loadBeans(URL cfgUrl, Class<?>... beanClasses) throws IgniteCheckedException
- Specified by:
loadBeansin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadBeans
public GridTuple3<Map<String,?>,Map<Class<?>,Collection>,? extends GridSpringResourceContext> loadBeans(URL cfgUrl, Collection<String> beanNames, Class<?>... beanClasses) throws IgniteCheckedException
- Specified by:
loadBeansin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadBean
public <T> T loadBean(URL url, String beanName) throws IgniteCheckedException
- Specified by:
loadBeanin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadBean
public <T> T loadBean(InputStream cfgStream, String beanName) throws IgniteCheckedException
- Specified by:
loadBeanin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
loadBeanFromAppContext
public <T> T loadBeanFromAppContext(Object appContext, String beanName) throws IgniteCheckedException
- Specified by:
loadBeanFromAppContextin interfaceIgniteSpringHelper- Throws:
IgniteCheckedException
-
userVersion
public String userVersion(ClassLoader ldr, IgniteLogger log)
- Specified by:
userVersionin interfaceIgniteSpringHelper
-
applicationContext
public static org.springframework.context.ApplicationContext applicationContext(URL cfgUrl, String... excludedProps) throws IgniteCheckedException
Creates Spring application context. Optionally excluded properties can be specified, it means that if such a property is found inIgniteConfigurationthen it is removed before the bean is instantiated. For example,streamerConfigurationcan be excluded from the configs that Visor uses.- Parameters:
cfgUrl- Resource where config file is located.excludedProps- Properties to be excluded.- Returns:
- Spring application context.
- Throws:
IgniteCheckedException- If configuration could not be read.
-
applicationContext
public static org.springframework.context.ApplicationContext applicationContext(InputStream cfgStream, String... excludedProps) throws IgniteCheckedException
Creates Spring application context. Optionally excluded properties can be specified, it means that if such a property is found inIgniteConfigurationthen it is removed before the bean is instantiated. For example,streamerConfigurationcan be excluded from the configs that Visor uses.- Parameters:
cfgStream- Stream where config file is located.excludedProps- Properties to be excluded.- Returns:
- Spring application context.
- Throws:
IgniteCheckedException- If configuration could not be read.
-
-