org.sakaiproject.metaobj.utils.ioc
Class ApplicationContextFactory

java.lang.Object
  extended byorg.sakaiproject.metaobj.utils.ioc.ApplicationContextFactory

public class ApplicationContextFactory
extends Object

Loads the ApplicationContext from xml files listed in a property file. The xml files referenced in the properties should be in the classpath. The format of the property file should be as follows:


1=help-config.xml
2=help-web-config.xml
3=home-config.xml
...

The numbering controls the loading order of the files. This allows for overriding of beans configured in earlier xml definition files. Without the numbering we can not gaurantee what order the files will load.


Method Summary
protected  String[] convertToArray(Collection collection)
           
 ApplicationContext createContext(Properties properties)
           
 String[] getConfigLocations(Properties props)
           
static ApplicationContextFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ApplicationContextFactory getInstance()

createContext

public ApplicationContext createContext(Properties properties)
Parameters:
properties -
Returns:

getConfigLocations

public String[] getConfigLocations(Properties props)
                            throws IOException
Throws:
IOException

convertToArray

protected String[] convertToArray(Collection collection)