public class FileModuleRegistry extends AbstractModuleRegistry implements org.springframework.context.ApplicationContextAware
ModuleRegistry that supports two kinds of modules:
source/time.xmlsource/time/config/time.xml and extra classpath is loaded from jars in a lib subdirectory
e.g. source/time/lib/*.jar| Constructor and Description |
|---|
FileModuleRegistry(java.lang.String directory) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.core.io.Resource |
locateApplicationContext(java.lang.String name,
java.lang.String type)
Return a resource pointing to an
ApplicationContext XML definition file. |
protected java.net.URL[] |
maybeLocateClasspath(org.springframework.core.io.Resource resource,
java.lang.String name,
java.lang.String type)
Return an array of jar files locations or
null if the module is a plain xml file. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
findDefinitions, lookupprotected org.springframework.core.io.Resource locateApplicationContext(java.lang.String name,
java.lang.String type)
AbstractModuleRegistryApplicationContext XML definition file.locateApplicationContext in class AbstractModuleRegistryprotected java.net.URL[] maybeLocateClasspath(org.springframework.core.io.Resource resource,
java.lang.String name,
java.lang.String type)
AbstractModuleRegistrynull if the module is a plain xml file. Default implementation
returns null.maybeLocateClasspath in class AbstractModuleRegistrypublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException