@@ -124,9 +124,9 @@ public RegexParameterizedPatternBuilder(final CaptureType type, final String def
124124 * {@link EvaluationContext}.
125125 */
126126 @ Override
127- public String build (final Rewrite event , final EvaluationContext context )
127+ public String build (final Rewrite event , final EvaluationContext context , final Transform < String > transform )
128128 {
129- return build (extractBoundValues (event , context ));
129+ return build (extractBoundValues (event , context , transform ));
130130 }
131131
132132 @ Override
@@ -214,9 +214,9 @@ else if (last == null)
214214
215215 /**
216216 * Extract bound values from configured {@link Binding} instances. Return a {@link Map} of the extracted key-value
217- * pairs.
217+ * pairs. Before storing the values in the map, this method applies the supplied {@link Transform} instance.
218218 */
219- private Map <String , Object > extractBoundValues (final Rewrite event , final EvaluationContext context )
219+ private Map <String , Object > extractBoundValues (final Rewrite event , final EvaluationContext context , Transform < String > transform )
220220 {
221221 Map <String , Object > result = new LinkedHashMap <String , Object >();
222222
@@ -230,7 +230,7 @@ private Map<String, Object> extractBoundValues(final Rewrite event, final Evalua
230230 if (value == null )
231231 throw new IllegalStateException ("Required parameter [" + group .getName () + "] value was null." );
232232
233- result .put (group .getName (), value );
233+ result .put (group .getName (), transform . transform ( event , context , value ) );
234234 }
235235 return result ;
236236 }
0 commit comments