public interface StringSubstitutor
String substitution is a process of substituting a string in a file with another string.
| Modifier and Type | Method and Description |
|---|---|
List<com.sun.enterprise.admin.servermgmt.xml.stringsubs.Property> |
getDefaultProperties(com.sun.enterprise.admin.servermgmt.xml.stringsubs.PropertyType type)
Gets the default
Property for the given PropertyType, If
the property type is null then all the default properties will be returned. |
com.sun.enterprise.admin.servermgmt.xml.stringsubs.StringsubsDefinition |
getStringSubsDefinition()
Gets the string-subs definition object.
|
void |
setAttributePreprocessor(AttributePreprocessor attributePreprocessor)
Set's the
AttributePreprocessor to customize the substitution
process. |
void |
setEntryFactory(SubstitutableFactory factory)
Set's a factory which can process a
FileEntry or an Archive entry
to retrieve all the Substitutable entries. |
void |
setFileBackupLocation(File backupLocation)
TODO: Missing Implementation
|
void |
substituteAll()
Performs string substitution.
|
void |
substituteComponents(List<String> components)
Performs string substitution for give components.
|
void |
substituteGroups(List<String> groups)
Performs string substitution for give groups.
|
void setAttributePreprocessor(AttributePreprocessor attributePreprocessor)
AttributePreprocessor to customize the substitution
process. Attribute preprocessor takes care to retrieve the value of
substitutable key.attributePreprocessor - Custom implementation of AttributePreprocessorvoid setEntryFactory(SubstitutableFactory factory)
FileEntry or an Archive entry
to retrieve all the Substitutable entries.factory - void setFileBackupLocation(File backupLocation)
backupLocation - List<com.sun.enterprise.admin.servermgmt.xml.stringsubs.Property> getDefaultProperties(com.sun.enterprise.admin.servermgmt.xml.stringsubs.PropertyType type)
Property for the given PropertyType, If
the property type is null then all the default properties will be returned.type - The type for which default properties has to be retrieved.com.sun.enterprise.admin.servermgmt.xml.stringsubs.StringsubsDefinition getStringSubsDefinition()
StringSubsDefiniton object
contains the details of component, groups and files used in substitution.
NOTE: This object is updateable.
void substituteAll()
throws StringSubstitutionException
StringSubstitutionException - If any error occurs in string substitution.void substituteComponents(List<String> components) throws StringSubstitutionException
components - List of Component identifiers for which the string
substitution has to be performed.StringSubstitutionException - If any error occurs during
substitution.void substituteGroups(List<String> groups) throws StringSubstitutionException
groups - List of Group identifiers for which the string
substitution has to be performed.StringSubstitutionException - If any error occurs during
substitution.Copyright © 2019. All rights reserved.