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