| Type | Name and description |
|---|---|
groovy.lang.Closure<java.lang.Void> |
loadThe closure must accept a properties object and an input stream, and load from the input stream into the properties. |
java.util.regex.Pattern |
patternThe pattern is used to read the target name from a properties file defining a context - it must define at least one grouping and the target name will be parsed as pattern.matcher(fileName).group(1) |
| Constructor and description |
|---|
StagingExtension.Template
(java.lang.String mask) |
StagingExtension.Template
(java.util.regex.Pattern pattern) |
StagingExtension.Template
(java.lang.String mask, groovy.lang.Closure<java.lang.Void> load) |
StagingExtension.Template
(java.util.regex.Pattern pattern, groovy.lang.Closure<java.lang.Void> load) |
StagingExtension.Template
(java.util.Map values) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.regex.Pattern |
compile(java.lang.String mask) |
|
static groovy.lang.Closure<java.lang.Void> |
getLoad(java.util.Map values) |
|
static java.util.regex.Pattern |
getPattern(java.util.Map values) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The closure must accept a properties object and an input stream, and load from the input stream into the properties.
If the input stream is for a normal Java properties text file then the
closure can simply invoke Properties#load.
If the input stream is for an XML-formatted Java properties file then
the closure can invoke Properties#loadFromXML
Any closure implementation is fine as long as the input stream is
converted into the properties object in a manner similar to what's done
by Properties#load and Properties#loadFromXML.
The pattern is used to read the target name from a properties file defining a context - it must define at least one grouping and the target name will be parsed as
pattern.matcher(fileName).group(1)
Groovy Documentation