Class Ignite2ConfigurationUtils
java.lang.Object
org.apache.ignite.migrationtools.config.Ignite2ConfigurationUtils
Utility methods for managing Ignite 2 Configurations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.beans.factory.support.DefaultListableBeanFactorycreateBeanFactory(boolean skipUnloadableBeans) Create spring bean factory based on the skipUnloadableBeans property.static org.apache.ignite.configuration.IgniteConfigurationloadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans) static org.apache.ignite.configuration.IgniteConfigurationloadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans, @Nullable ClassLoader clientClassLoader) static org.apache.ignite.configuration.IgniteConfigurationloadIgnite2Configuration(org.springframework.core.io.Resource rsrc, org.springframework.beans.factory.support.DefaultListableBeanFactory factory, @Nullable ClassLoader classLoader) Load and Apache Ignite 2 configuration into memory.
-
Method Details
-
loadIgnite2Configuration
public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans) -
loadIgnite2Configuration
public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans, @Nullable @Nullable ClassLoader clientClassLoader) -
loadIgnite2Configuration
public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(org.springframework.core.io.Resource rsrc, org.springframework.beans.factory.support.DefaultListableBeanFactory factory, @Nullable @Nullable ClassLoader classLoader) throws org.springframework.beans.BeansException, IllegalStateException Load and Apache Ignite 2 configuration into memory.- Parameters:
rsrc- The input xml configuration file as a resource.factory- The BeanFactory- Returns:
- The IgniteConfiguration object.
- Throws:
org.springframework.beans.BeansExceptionIllegalStateException
-
createBeanFactory
public static org.springframework.beans.factory.support.DefaultListableBeanFactory createBeanFactory(boolean skipUnloadableBeans) Create spring bean factory based on the skipUnloadableBeans property.- Parameters:
skipUnloadableBeans- Whether the factory should skip unloadable beans or fail with an error.- Returns:
- The appropriate bean factory.
-