public class FileModuleRegistry extends AbstractModuleRegistry implements org.springframework.context.ApplicationContextAware
ModuleRegistry
that supports two kinds of modules:
source/time.xml
source/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, lookup
protected org.springframework.core.io.Resource locateApplicationContext(java.lang.String name, java.lang.String type)
AbstractModuleRegistry
ApplicationContext
XML definition file.locateApplicationContext
in class AbstractModuleRegistry
protected java.net.URL[] maybeLocateClasspath(org.springframework.core.io.Resource resource, java.lang.String name, java.lang.String type)
AbstractModuleRegistry
null
if the module is a plain xml file. Default implementation
returns null
.maybeLocateClasspath
in class AbstractModuleRegistry
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException