public abstract class AbstractContentDeliveryConfig extends Object implements ContentDeliveryConfig
ContentDeliveryConfig
.SMOOKS_VISITORS_SORT
Constructor and Description |
---|
AbstractContentDeliveryConfig() |
Modifier and Type | Method and Description |
---|---|
<T extends Visitor> |
addToExecutionLifecycleSets(ContentHandlerConfigMapTable<T> handlerSet) |
void |
executeHandlerCleanup(ExecutionContext executionContext)
Cleanup execution context lifecycle aware handlers.
|
void |
executeHandlerInit(ExecutionContext executionContext)
Initialize execution context lifecycle aware handlers.
|
List<ConfigBuilderEvent> |
getConfigBuilderEvents()
Get the list of Execution Events generated during the build of
the configuration.
|
DTDStore.DTDObjectContainer |
getDTD()
Get the DTD (
DTDStore.DTDObjectContainer ) for this delivery context. |
protected FilterBypass |
getFilterBypass(ContentHandlerConfigMapTable... visitorTables) |
List |
getObjects(String selector)
Get a list
Object s from the supplied SmooksResourceConfiguration selector value. |
Map<String,List<SmooksResourceConfiguration>> |
getSmooksResourceConfigurations()
Get the
SmooksResourceConfiguration map for the target execution context. |
List |
getSmooksResourceConfigurations(String selector)
Get the list of
SmooksResourceConfiguration s for the specified selector definition. |
XMLReader |
getXMLReader()
Get an
XMLReader instance from the
reader pool associated with this ContentDelivery config instance. |
void |
initializeXMLReaderPool() |
boolean |
isDefaultSerializationOn()
Is default serialization on..
|
void |
returnXMLReader(XMLReader reader)
Return an
XMLReader instance to the
reader pool associated with this ContentDelivery config instance. |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setDtd(DTDStore.DTDObjectContainer dtd) |
void |
setSmooksResourceConfigurations(Map<String,List<SmooksResourceConfiguration>> resourceConfigTable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToExecutionLifecycleSets, getFilterBypass, newFilter, sort
public void setApplicationContext(ApplicationContext applicationContext)
public List getSmooksResourceConfigurations(String selector)
SmooksResourceConfiguration
s for the specified selector definition.getSmooksResourceConfigurations
in interface ContentDeliveryConfig
selector
- The configuration "selector" attribute value from the .cdrl file in the .cdrar.ContentDeliveryConfig.getObjects(String)
public void setSmooksResourceConfigurations(Map<String,List<SmooksResourceConfiguration>> resourceConfigTable)
public Map<String,List<SmooksResourceConfiguration>> getSmooksResourceConfigurations()
SmooksResourceConfiguration
map for the target execution context.
This Map will be preordered
for the target execution context.getSmooksResourceConfigurations
in interface ContentDeliveryConfig
SmooksResourceConfiguration
map for the target execution context, keyed by the configuration
selector
, with each value being a
List
of preordered SmooksResourceConfiguration
instances.public List getObjects(String selector)
Object
s from the supplied SmooksResourceConfiguration
selector value.
Uses SmooksResourceConfigurationStore.getObject(org.milyn.cdr.SmooksResourceConfiguration)
to construct the object.getObjects
in interface ContentDeliveryConfig
selector
- selector attribute value from the .cdrl file in the .cdrar.SmooksResourceConfigurationStore.getObject(org.milyn.cdr.SmooksResourceConfiguration)
,
ContentDeliveryConfig.getSmooksResourceConfigurations(String)
public DTDStore.DTDObjectContainer getDTD()
ContentDeliveryConfig
DTDStore.DTDObjectContainer
) for this delivery context.getDTD
in interface ContentDeliveryConfig
DTDStore.DTDObjectContainer
) for this delivery context.public void setDtd(DTDStore.DTDObjectContainer dtd)
public List<ConfigBuilderEvent> getConfigBuilderEvents()
ContentDeliveryConfig
getConfigBuilderEvents
in interface ContentDeliveryConfig
public boolean isDefaultSerializationOn()
ContentDeliveryConfig
isDefaultSerializationOn
in interface ContentDeliveryConfig
public <T extends Visitor> void addToExecutionLifecycleSets(ContentHandlerConfigMapTable<T> handlerSet)
public void executeHandlerInit(ExecutionContext executionContext)
ContentDeliveryConfig
executeHandlerInit
in interface ContentDeliveryConfig
executionContext
- The execution context.public void executeHandlerCleanup(ExecutionContext executionContext)
ContentDeliveryConfig
executeHandlerCleanup
in interface ContentDeliveryConfig
executionContext
- The execution context.public void initializeXMLReaderPool()
public XMLReader getXMLReader()
ContentDeliveryConfig
XMLReader
instance from the
reader pool associated with this ContentDelivery config instance.getXMLReader
in interface ContentDeliveryConfig
public void returnXMLReader(XMLReader reader)
ContentDeliveryConfig
XMLReader
instance to the
reader pool associated with this ContentDelivery config instance.returnXMLReader
in interface ContentDeliveryConfig
reader
- The XMLReader instance to be returned. If the pool is full, the instance
is left to the GC (i.e. lost).protected FilterBypass getFilterBypass(ContentHandlerConfigMapTable... visitorTables)
Copyright © 2020. All rights reserved.