core/src/main/java/nl/nn/adapterframework/lifecycle/IbisApplicationContext.java
/**
	 * Creates the Spring Application Context when ran from the command line.
	 * @throws BeansException when the Context fails to initialize
	 */
Creates the Spring Application Context when ran from the command line.
@throws BeansException when the Context fails to initialize
Creates the Spring Application Context when ran from the command line . @throws BeansException when the Context fails to initialize
private ClassPathXmlApplicationContext createClassPathApplicationContext() throws BeansException {
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
		MutablePropertySources propertySources = applicationContext.getEnvironment().getPropertySources();
		propertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);
		propertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);
		propertySources.addFirst(new PropertiesPropertySource("ibis", APP_CONSTANTS));
		applicationContext.setConfigLocations(getSpringConfigurationFiles(applicationContext.getClassLoader()));
		return applicationContext;
	}
private ClassPathXmlApplicationContext createClassPathApplicationContext ( ) throws BeansException { ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext ( ) ; MutablePropertySources propertySources = applicationContext . getEnvironment ( ) . getPropertySources ( ) ; propertySources . remove ( StandardEnvironment . SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME ) ; propertySources . remove ( StandardEnvironment . SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME ) ; propertySources . addFirst ( new PropertiesPropertySource ( "ibis" , APP_CONSTANTS ) ) ; applicationContext . setConfigLocations ( getSpringConfigurationFiles ( applicationContext . getClassLoader ( ) ) ) ; return applicationContext ; }
Creates the Spring Application Context when ran from the command line.
Creates the Spring Application Context when ran from the command line .