|
||||||||||
| 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
public class 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 | |
|---|---|
protected org.springframework.context.support.AbstractXmlApplicationContext |
createXmlApplicationContext(String configLocation)
A factory method for creating the application context |
org.springframework.context.support.AbstractXmlApplicationContext |
getApplicationContext()
Returns the last Spring application context that was read via the call to load(String) |
File |
getBaseDir()
Gets the base directory from which configuration locations are resolved. |
List |
getBeanFactoryPostProcessors()
Gets the BeanFactoryPostProcessors to apply to the configuration. |
org.apache.xbean.kernel.Kernel |
getKernel()
Gets the kernel in which configuraitons are loaded. |
List |
getXmlPreprocessors()
Gets the SpringXmlPreprocessors applied to the configuration. |
org.apache.xbean.kernel.ServiceName |
load(String location)
Loads the specified configuration into the kernel. |
void |
setBaseDir(File baseDir)
Sets the base directory from which configuration locations are resolved. |
void |
setBeanFactoryPostProcessors(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(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 List getBeanFactoryPostProcessors()
public void setBeanFactoryPostProcessors(List beanFactoryPostProcessors)
beanFactoryPostProcessors - the BeanFactoryPostProcessors to apply to the configurationpublic File getBaseDir()
public void setBaseDir(File baseDir)
baseDir - the base directory from which configuration locations are resolvedpublic List getXmlPreprocessors()
public void setXmlPreprocessors(List xmlPreprocessors)
xmlPreprocessors - the SpringXmlPreprocessors applied to the configuration
public org.apache.xbean.kernel.ServiceName load(String location)
throws Exception
load in interface Loaderlocation - the location of the configuration file relative to the base directory without the .xml extension
Exception - if a problem occurs while loading the Spring configuration filepublic org.springframework.context.support.AbstractXmlApplicationContext getApplicationContext()
load(String)
protected org.springframework.context.support.AbstractXmlApplicationContext createXmlApplicationContext(String configLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||