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 void
addExecutionEventListener(ExecutionEventListener executionEventListener)
Add an ExecutionEventListener for theExecutionContext
.ContentDeliveryConfig
getContentDeliveryConfig()
List<ExecutionEventListener>
getExecutionEventListeners()
Get the ExecutionEventListener for theExecutionContext
.ReaderPool
getReaderPool()
void
removeExecutionEventListener(ExecutionEventListener executionEventListener)
-
-
-
Constructor Detail
-
DefaultContentDeliveryRuntime
public DefaultContentDeliveryRuntime(ReaderPool readerPool, ContentDeliveryConfig contentDeliveryConfig)
-
-
Method Detail
-
getReaderPool
public ReaderPool getReaderPool()
- Specified by:
getReaderPool
in interfaceContentDeliveryRuntime
-
getContentDeliveryConfig
public ContentDeliveryConfig getContentDeliveryConfig()
- Specified by:
getContentDeliveryConfig
in 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:
addExecutionEventListener
in interfaceContentDeliveryRuntime
- Parameters:
listener
- The listener instance.- See Also:
BasicExecutionEventListener
-
removeExecutionEventListener
public void removeExecutionEventListener(ExecutionEventListener executionEventListener)
- Specified by:
removeExecutionEventListener
in interfaceContentDeliveryRuntime
-
getExecutionEventListeners
public List<ExecutionEventListener> getExecutionEventListeners()
Get the ExecutionEventListener for theExecutionContext
.- Specified by:
getExecutionEventListeners
in interfaceContentDeliveryRuntime
- Returns:
- The listener instance.
- See Also:
addExecutionEventListener(ExecutionEventListener)
-
-