public class WritableResourceModuleRegistry extends ResourceModuleRegistry implements WritableModuleRegistry, org.springframework.beans.factory.InitializingBean
ResourceModuleRegistry.
Will generate MD5 hash files for written modules.
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
HEX_DIGITS |
protected static java.lang.String |
XD_CONFIG_HOME |
ARCHIVE_AS_FILE_EXTENSION, HASH_EXTENSION, resolver, root| Constructor and Description |
|---|
WritableResourceModuleRegistry(java.lang.String root) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
delete(ModuleDefinition definition)
Attempt to delete the given definition, if that registry is responsible for it.
|
boolean |
registerNew(ModuleDefinition definition)
Attempt to register the given definition, if that registry can handle it.
|
void |
setCreateDirectoryStructure(boolean createDirectoryStructure) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
collect, findDefinition, findDefinitions, findDefinitions, findDefinitions, getResources, hashResource, setRequireHashFilesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindDefinition, findDefinitions, findDefinitions, findDefinitionsprotected static final byte[] HEX_DIGITS
protected static final java.lang.String XD_CONFIG_HOME
public WritableResourceModuleRegistry(java.lang.String root)
public boolean delete(ModuleDefinition definition)
WritableModuleRegistrydelete in interface WritableModuleRegistrypublic boolean registerNew(ModuleDefinition definition)
WritableModuleRegistryregisterNew in interface WritableModuleRegistrypublic void setEnvironment(org.springframework.core.env.Environment environment)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setCreateDirectoryStructure(boolean createDirectoryStructure)