Class CloneMessageServiceList

All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, EventHandlerAware, MessageEventGenerator, Service, ServiceCollection, StateManagedComponent, Iterable<Service>, Collection<Service>, List<Service>

@ComponentProfile(summary="A collection of services where each service gets a new copy of the message", tag="service,base") public class CloneMessageServiceList extends ServiceListBase
Implementation of ServiceCollection that creates a new clone of AdaptrisMessage for each configured service.

The expected use case for this ServiceCollection is that you have a number of services that have to process exactly the same message (e.g. transforming XML to an HTML representation as well as CSV).

If you have a list of services that require the same clone to be used; then use a nested ServiceList to wrap all the required Service implementations that require it (e.g. Transforming to HTML and emailing the result of the transform)

If there are services configured after this ServiceCollection implementation then they will process the message in its original form.

In the adapter configuration file this class is aliased as clone-message-service-list which is the preferred alternative to the fully qualified classname when building your configuration.