Package org.smooks.engine.delivery
Class DefaultContentDeliveryRuntime
- java.lang.Object
-
- org.smooks.engine.delivery.DefaultContentDeliveryRuntime
-
- All Implemented Interfaces:
org.smooks.api.delivery.ContentDeliveryRuntime
public class DefaultContentDeliveryRuntime extends Object implements org.smooks.api.delivery.ContentDeliveryRuntime
-
-
Constructor Summary
Constructors Constructor Description DefaultContentDeliveryRuntime(org.smooks.api.delivery.ReaderPool readerPool, org.smooks.api.delivery.ContentDeliveryConfig contentDeliveryConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExecutionEventListener(org.smooks.api.delivery.event.ExecutionEventListener executionEventListener)Add an ExecutionEventListener for theExecutionContext.org.smooks.api.delivery.ContentDeliveryConfiggetContentDeliveryConfig()List<org.smooks.api.delivery.event.ExecutionEventListener>getExecutionEventListeners()Get the ExecutionEventListener for theExecutionContext.org.smooks.api.delivery.ReaderPoolgetReaderPool()voidremoveExecutionEventListener(org.smooks.api.delivery.event.ExecutionEventListener executionEventListener)
-
-
-
Method Detail
-
getReaderPool
public org.smooks.api.delivery.ReaderPool getReaderPool()
- Specified by:
getReaderPoolin interfaceorg.smooks.api.delivery.ContentDeliveryRuntime
-
getContentDeliveryConfig
public org.smooks.api.delivery.ContentDeliveryConfig getContentDeliveryConfig()
- Specified by:
getContentDeliveryConfigin interfaceorg.smooks.api.delivery.ContentDeliveryRuntime
-
addExecutionEventListener
public void addExecutionEventListener(org.smooks.api.delivery.event.ExecutionEventListener executionEventListener)
Add an ExecutionEventListener for theExecutionContext. 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:
addExecutionEventListenerin interfaceorg.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:
removeExecutionEventListenerin interfaceorg.smooks.api.delivery.ContentDeliveryRuntime
-
getExecutionEventListeners
public List<org.smooks.api.delivery.event.ExecutionEventListener> getExecutionEventListeners()
Get the ExecutionEventListener for theExecutionContext.- Specified by:
getExecutionEventListenersin interfaceorg.smooks.api.delivery.ContentDeliveryRuntime- Returns:
- The listener instance.
- See Also:
addExecutionEventListener(ExecutionEventListener)
-
-