org.ikasan.framework.module.loader
Class ModuleFactoryBean

java.lang.Object
  extended by 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

Field Summary
protected static String FILE_SEPARATOR
          System file separator
 
Constructor Summary
ModuleFactoryBean(List<String> environmentalisationBeanDefinitionFileNameList, List<String> moduleBeanDefinitionFileNameList, File environmentalisationDirectory, String moduleBeanName)
          Constructor
 
Method Summary
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SEPARATOR

protected static final String FILE_SEPARATOR
System file separator

Constructor Detail

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 environmentalisationDirectory
moduleBeanDefinitionFileNameList - - List of Strings representing the names of the bean definition files expected to be found on the classpath
environmentalisationDirectory - - directory in which to find environmentalisation bean definitions
moduleBeanName - - name of id of the module we wish to load from within the bean definition
Method Detail

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.