*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
/**
* The standard means to obtain the bean factory. This works by reading a
* property {@value #BEAN_FACTORY_CLASS} from a property file named
/**
* The standard means to obtain the bean factory. This works by reading a
* property {@value #BEAN_FACTORY_CLASS} from a property file named
*/
static BeanFactory lookupBeanFactory(String aPropertyFilename) {
InputResource resource = new ClassPathResource(aPropertyFilename);
InputStream is;
*/
static BeanFactory lookupBeanFactory(String aPropertyFilename) {
InputResource resource = new ClassPathResource(aPropertyFilename);
InputStream is;
try {
is = resource.getInputStream();
} catch (IOException e) {
throw new BeanFactoryException("Cannot open resource " + resource,
try {
is = resource.getInputStream();
} catch (IOException e) {
throw new BeanFactoryException("Cannot open resource " + resource,
String className = props.getProperty(BEAN_FACTORY_CLASS);
Class beanFactory = Class.forName(className);
String className = props.getProperty(BEAN_FACTORY_CLASS);
Class beanFactory = Class.forName(className);