public abstract class AbstractModuleRegistry extends java.lang.Object implements ModuleRegistry
ModuleRegistry and knows how to handle custom classpath population for storages
that support it.| Constructor and Description |
|---|
AbstractModuleRegistry() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ModuleDefinition> |
findDefinitions(java.lang.String name)
Searches the registry for the name specified and returns all module definitions that match the name regardless of
module type.
|
protected abstract org.springframework.core.io.Resource |
locateApplicationContext(java.lang.String name,
java.lang.String type)
Return a resource pointing to an
ApplicationContext XML definition file. |
ModuleDefinition |
lookup(java.lang.String name,
java.lang.String type)
Lookup a module of the given type with the given name.
|
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. |
public ModuleDefinition lookup(java.lang.String name, java.lang.String type)
ModuleRegistrylookup in interface ModuleRegistrynull if this registry does not have such a moduleprotected java.net.URL[] maybeLocateClasspath(org.springframework.core.io.Resource resource,
java.lang.String name,
java.lang.String type)
null if the module is a plain xml file. Default implementation
returns null.public java.util.List<ModuleDefinition> findDefinitions(java.lang.String name)
ModuleRegistryfindDefinitions in interface ModuleRegistryname - The module definition name to be searched.protected abstract org.springframework.core.io.Resource locateApplicationContext(java.lang.String name,
java.lang.String type)
ApplicationContext XML definition file.