Class DynamicServiceExecutor

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, EventHandlerAware, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Lookup and execute a dynamic service",
                      tag="service,dynamic")
    public class DynamicServiceExecutor
    extends ServiceImp
    implements EventHandlerAware
    Implementation of Service which dynamically obtains and applies a Service to an AdaptrisMessage based on the contents of the message.

    This class will attempt to extract a marshalled service from the specified location (which might be the current message), unmarshal that service, and then execute that service against the current message. The use of this type of service is discouraged from a supportability perspective; however there will be use cases where it is appropriate. No checks are performed on the Service that is unmarshalled; any exceptions thrown by unmarshalled service are simply rethrown back to the workflow for standard message error handling.

    See Also:
    ServiceExtractor

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