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, setRequireHashFiles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findDefinition, findDefinitions, findDefinitions, findDefinitions
protected 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)
WritableModuleRegistry
delete
in interface WritableModuleRegistry
public boolean registerNew(ModuleDefinition definition)
WritableModuleRegistry
registerNew
in interface WritableModuleRegistry
public void setEnvironment(org.springframework.core.env.Environment environment)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setCreateDirectoryStructure(boolean createDirectoryStructure)