|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xbean.server.spring.loader.SpringLoader
SpringLoader loads Spring xml configurations into a Kernel. This service uses the XBean version of FileSystemXmlApplicationContext so custom XML extensions are available. This loader also support the specification of SpringXmlPreprocessors and BeanFactoryPostProcessors to apply to the configuration.
| Constructor Summary | |
SpringLoader()
Creates an empty SpringLoader. |
|
| Method Summary | |
java.io.File |
getBaseDir()
Gets the base directory from which configuration locations are resolved. |
java.util.List |
getBeanFactoryPostProcessors()
Gets the BeanFactoryPostProcessors to apply to the configuration. |
org.apache.xbean.kernel.Kernel |
getKernel()
Gets the kernel in which configuraitons are loaded. |
java.util.List |
getXmlPreprocessors()
Gets the SpringXmlPreprocessors applied to the configuration. |
org.apache.xbean.kernel.ServiceName |
load(java.lang.String location)
Loads the specified configuration into the kernel. |
void |
setBaseDir(java.io.File baseDir)
Sets the base directory from which configuration locations are resolved. |
void |
setBeanFactoryPostProcessors(java.util.List beanFactoryPostProcessors)
Sets the BeanFactoryPostProcessors to apply to the configuration. |
void |
setKernel(org.apache.xbean.kernel.Kernel kernel)
Sets the kernel in which configurations are loaded. |
void |
setXmlPreprocessors(java.util.List xmlPreprocessors)
Sets the SpringXmlPreprocessors applied to the configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpringLoader()
| Method Detail |
public org.apache.xbean.kernel.Kernel getKernel()
getKernel in interface Loaderpublic void setKernel(org.apache.xbean.kernel.Kernel kernel)
kernel - the kernel in which configurations are loadedpublic java.util.List getBeanFactoryPostProcessors()
public void setBeanFactoryPostProcessors(java.util.List beanFactoryPostProcessors)
beanFactoryPostProcessors - the BeanFactoryPostProcessors to apply to the configurationpublic java.io.File getBaseDir()
public void setBaseDir(java.io.File baseDir)
baseDir - the base directory from which configuration locations are resolvedpublic java.util.List getXmlPreprocessors()
public void setXmlPreprocessors(java.util.List xmlPreprocessors)
xmlPreprocessors - the SpringXmlPreprocessors applied to the configuration
public org.apache.xbean.kernel.ServiceName load(java.lang.String location)
throws java.lang.Exception
load in interface Loaderlocation - the location of the configuration file relative to the base directory without the .xml extension
java.lang.Exception - if a problem occurs while loading the Spring configuration file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||