public abstract class PropertiesListDynamicConfiguration extends PropertiesDynamicConfiguration
Extends this class to manage new properties file list values.
Constructor and Description |
---|
PropertiesListDynamicConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected String |
getFileIdentifierFromPath(String path)
Get the file identifier from the file path.
|
protected String |
getFileIndentifierFromKey(String key)
Get the file identifier from the property key
|
protected String |
getFileName(String path)
Get the file name part from a path.
|
String |
getFilePath()
Get the dynamic configuration file path.
|
abstract String |
getFilePrefix() |
protected List<org.springframework.roo.file.monitor.event.FileDetails> |
getFiles(String source)
Get included files on a path.
|
abstract String |
getFileSufix() |
protected String |
getKeyValue(String key)
Get key value from a dynamic property.
|
abstract String |
getPropertySourcePrefix() |
abstract String |
getPropertyTargetPrefix() |
protected boolean |
include(String path)
There is a file to include on dynamic configurations ?
|
protected boolean |
isPropertyRelatedToFile(DynProperty dynProp,
org.springframework.roo.process.manager.MutableFile file)
Is a dynamic property related to the file ?
|
DynPropertyList |
read() |
protected String |
setKeyValue(String key,
String path)
Set key value to set on a dynamic property considering file name.
|
void |
write(DynPropertyList dynProps) |
getFile
public String getFilePath()
getFilePath
in class FileDynamicConfiguration
public DynPropertyList read()
read
in class PropertiesDynamicConfiguration
public void write(DynPropertyList dynProps)
write
in class PropertiesDynamicConfiguration
protected boolean isPropertyRelatedToFile(DynProperty dynProp, org.springframework.roo.process.manager.MutableFile file)
dynProp
- Dynamic propertyfile
- Mutable fileprotected List<org.springframework.roo.file.monitor.event.FileDetails> getFiles(String source)
source
- Initial path to search filesprotected boolean include(String path)
path
- File path to checkprotected String setKeyValue(String key, String path)
key
- Original key valuepath
- File pathprotected String getFileIndentifierFromKey(String key)
path
- File pathprotected String getKeyValue(String key)
key
- Original key valueprotected String getFileIdentifierFromPath(String path)
path
- File pathprotected String getFileName(String path)
path
- File pathpublic abstract String getFileSufix()
public abstract String getFilePrefix()
public abstract String getPropertyTargetPrefix()
public abstract String getPropertySourcePrefix()
Copyright © 2010–2015 General Directorate for Information Technologies (DGTI) of the Regional Ministry of Finance and Public Administration of the Generalitat Valenciana.. All rights reserved.