...
Code Block | ||||
---|---|---|---|---|
| ||||
public class UpcasePostFilter implements StringTransformFilter { public String transform(String input, StringTransformService delegate) { return delegate.transform(input).toUpperCase(); } } |
The PipelineBuilder service Service (API) is useful for constructing pipelines. The service is often injected into a service builder method, along with an ordered configuration of services.
What the builder accomplishes is to represent each filter in the pipeline as an instance of the service interface.
!images/PipelineCallingSequence.png!
Pipeline Calling Sequence
The SequenceThe bridges are created by the PipelineBuilder service. The terminator must be provided. The bridges and the terminator implement the service interface.
...