org.ikasan.framework.module.loader
Class ModuleFactoryBean
java.lang.Object
org.ikasan.framework.module.loader.ModuleFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware
public class ModuleFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware
FactoryBean for loading a Module from various bean definition files available on the
classpath and on the file system.
The core module definition files are expected to be found on the classpath, whilst any environmentally dependent
beans are expected to be preloaded from files found on the filesystem, in the environmentalisation directory
- Author:
- Ikasan Development Team
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_SEPARATOR
protected static final String FILE_SEPARATOR
- System file separator
ModuleFactoryBean
public ModuleFactoryBean(List<String> environmentalisationBeanDefinitionFileNameList,
List<String> moduleBeanDefinitionFileNameList,
File environmentalisationDirectory,
String moduleBeanName)
- Constructor
- Parameters:
environmentalisationBeanDefinitionFileNameList - - List of Strings representing the relative names of bean
definition files used for environmentalising the bean definitions, relative to the
environmentalisationDirectorymoduleBeanDefinitionFileNameList - - List of Strings representing the names of the bean definition files
expected to be found on the classpathenvironmentalisationDirectory - - directory in which to find environmentalisation bean definitionsmoduleBeanName - - name of id of the module we wish to load from within the bean definition
getObject
public Object getObject()
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
getObjectType
public Class getObjectType()
- Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2007-2012 Ikasan. All Rights Reserved.