public class RedisModuleRegistry extends AbstractModuleRegistry
ModuleRegistry
that stores module definitions in various redis hashes.Constructor and Description |
---|
RedisModuleRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ModuleDefinition> |
findDefinitions()
Returns all module definitions.
|
java.util.List<ModuleDefinition> |
findDefinitions(ModuleType type)
Searches the registry for the type specified and returns all module definitions that match the type.
|
protected java.lang.String |
inferModuleName(org.springframework.core.io.Resource resource)
Recover the name of the module, given its resource location.
|
protected org.springframework.core.io.Resource |
locateApplicationContext(java.lang.String name,
ModuleType type)
Return a resource pointing to an
ApplicationContext XML definition file. |
protected java.util.List<org.springframework.core.io.Resource> |
locateApplicationContexts(ModuleType type)
Return a list of resources pointing to
ApplicationContext XML definition files. |
findDefinition, findDefinitions, maybeLocateClasspath
public RedisModuleRegistry(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
protected org.springframework.core.io.Resource locateApplicationContext(java.lang.String name, ModuleType type)
AbstractModuleRegistry
ApplicationContext
XML definition file.locateApplicationContext
in class AbstractModuleRegistry
public java.util.List<ModuleDefinition> findDefinitions(ModuleType type)
ModuleRegistry
findDefinitions
in interface ModuleRegistry
findDefinitions
in class AbstractModuleRegistry
type
- The module type name to be searched.protected java.util.List<org.springframework.core.io.Resource> locateApplicationContexts(ModuleType type)
AbstractModuleRegistry
ApplicationContext
XML definition files.locateApplicationContexts
in class AbstractModuleRegistry
public java.util.List<ModuleDefinition> findDefinitions()
ModuleRegistry
findDefinitions
in interface ModuleRegistry
findDefinitions
in class AbstractModuleRegistry
protected java.lang.String inferModuleName(org.springframework.core.io.Resource resource)
AbstractModuleRegistry
inferModuleName
in class AbstractModuleRegistry