Filter
public class SystemFilter extends java.lang.Object implements Filter
SystemFilter
object is used to provide a filter
that will replace the specified values with system properties.
This can be given a delegate filter which can be used to resolve
replacements should the value requested not match a property.Constructor | Description |
---|---|
SystemFilter() |
Constructor for the
SystemFilter object. |
SystemFilter(Filter filter) |
Constructor for the
SystemFilter object. |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
replace(java.lang.String text) |
Replaces the text provided with the value resolved from the
system properties.
|
public SystemFilter()
SystemFilter
object. This
creates a filter that will resolve replacements using system
properties. Should the system properties not contain the
requested mapping this will return a null value.public SystemFilter(Filter filter)
SystemFilter
object. This
creates a filter that will resolve replacements using system
properties. Should the system properties not contain the
requested mapping this delegates to the specified filter.filter
- the filter delegated to if resolution fails