Class DefaultContentDeliveryRuntime

  • All Implemented Interfaces:
    org.smooks.api.delivery.ContentDeliveryRuntime

    public class DefaultContentDeliveryRuntime
    extends Object
    implements org.smooks.api.delivery.ContentDeliveryRuntime
    • Constructor Detail

      • DefaultContentDeliveryRuntime

        public DefaultContentDeliveryRuntime​(org.smooks.api.delivery.ReaderPool readerPool,
                                             org.smooks.api.delivery.ContentDeliveryConfig contentDeliveryConfig)
    • Method Detail

      • getReaderPool

        public org.smooks.api.delivery.ReaderPool getReaderPool()
        Specified by:
        getReaderPool in interface org.smooks.api.delivery.ContentDeliveryRuntime
      • getContentDeliveryConfig

        public org.smooks.api.delivery.ContentDeliveryConfig getContentDeliveryConfig()
        Specified by:
        getContentDeliveryConfig in interface org.smooks.api.delivery.ContentDeliveryRuntime
      • addExecutionEventListener

        public void addExecutionEventListener​(org.smooks.api.delivery.event.ExecutionEventListener executionEventListener)
        Add an ExecutionEventListener for the ExecutionContext.

        Allows calling code to listen to (and capture data on) specific context execution events e.g. the targeting of resources.

        Note, this is not a logging facility and should be used with care. It's overuse should be avoided as it can have a serious negative effect on performance. By default, no listenrs are applied and so no overhead is incured.

        Specified by:
        addExecutionEventListener in interface org.smooks.api.delivery.ContentDeliveryRuntime
        Parameters:
        listener - The listener instance.
        See Also:
        BasicExecutionEventListener
      • removeExecutionEventListener

        public void removeExecutionEventListener​(org.smooks.api.delivery.event.ExecutionEventListener executionEventListener)
        Specified by:
        removeExecutionEventListener in interface org.smooks.api.delivery.ContentDeliveryRuntime
      • getExecutionEventListeners

        public List<org.smooks.api.delivery.event.ExecutionEventListener> getExecutionEventListeners()
        Get the ExecutionEventListener for the ExecutionContext.
        Specified by:
        getExecutionEventListeners in interface org.smooks.api.delivery.ContentDeliveryRuntime
        Returns:
        The listener instance.
        See Also:
        addExecutionEventListener(ExecutionEventListener)