public interface ContentDeliveryConfig
Content Delivery Units
)
and other information for the targeted profile.Modifier and Type | Field and Description |
---|---|
static String |
SMOOKS_VISITORS_SORT
|
Modifier and Type | Method and Description |
---|---|
void |
addToExecutionLifecycleSets()
Add the execution lifecycle sets for the configuration.
|
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. |
FilterBypass |
getFilterBypass()
Get the
FilterBypass for this delivery configuration. |
List |
getObjects(String selector)
Get a list of
Object s from the SmooksResourceConfiguration s specified by the selector. |
Map<String,List<SmooksResourceConfiguration>> |
getSmooksResourceConfigurations()
Get the
SmooksResourceConfiguration map for the target execution context. |
List<SmooksResourceConfiguration> |
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. |
boolean |
isDefaultSerializationOn()
Is default serialization on..
|
Filter |
newFilter(ExecutionContext executionContext)
Get a new stream filter for the content delivery configuration.
|
void |
returnXMLReader(XMLReader reader)
Return an
XMLReader instance to the
reader pool associated with this ContentDelivery config instance. |
void |
sort()
|
static final String SMOOKS_VISITORS_SORT
produce
and consume
.
Default value "true".List<SmooksResourceConfiguration> getSmooksResourceConfigurations(String selector)
SmooksResourceConfiguration
s for the specified selector definition.
This list will be preselected and preordered
for the target execution context.selector
- Configuration selector
. This
parameter is treated case incensitively.SmooksResourceConfiguration
instances, or null if no SmooksResourceConfiguration
s are
defined under that selector (for the device).getObjects(String)
Map<String,List<SmooksResourceConfiguration>> getSmooksResourceConfigurations()
SmooksResourceConfiguration
map for the target execution context.
This Map will be preordered
for the target execution context.SmooksResourceConfiguration
map for the target execution context, keyed by the configuration
selector
, with each value being a
List
of preordered SmooksResourceConfiguration
instances.List getObjects(String selector)
Object
s from the SmooksResourceConfiguration
s specified by the selector.
Gets the SmooksResourceConfiguration
s specified for the selector and attempts to instanciate
a Java class instance from the resource specified by each of the SmooksResourceConfiguration
s.
Implementations should use SmooksResourceConfigurationStore.getObject(org.milyn.cdr.SmooksResourceConfiguration)
to
construct each object.selector
- selector attribute value from the .cdrl file in the .cdrar. This
parameter is treated case incensitively.SmooksResourceConfigurationStore.getObject(org.milyn.cdr.SmooksResourceConfiguration)
,
getSmooksResourceConfigurations(String)
Filter newFilter(ExecutionContext executionContext)
executionContext
- Execution context.DTDStore.DTDObjectContainer getDTD()
DTDStore.DTDObjectContainer
) for this delivery context.DTDStore.DTDObjectContainer
) for this delivery context.List<ConfigBuilderEvent> getConfigBuilderEvents()
boolean isDefaultSerializationOn()
void sort() throws SmooksConfigurationException
SmooksConfigurationException
- Sort failure.SMOOKS_VISITORS_SORT
void addToExecutionLifecycleSets() throws SmooksConfigurationException
SmooksConfigurationException
- Error resolving the handlers interested
in the Execution lifecycle.void executeHandlerInit(ExecutionContext executionContext)
executionContext
- The execution context.void executeHandlerCleanup(ExecutionContext executionContext)
executionContext
- The execution context.XMLReader getXMLReader() throws SAXException
XMLReader
instance from the
reader pool associated with this ContentDelivery config instance.SAXException
void returnXMLReader(XMLReader reader)
XMLReader
instance to the
reader pool associated with this ContentDelivery config instance.reader
- The XMLReader instance to be returned. If the pool is full, the instance
is left to the GC (i.e. lost).FilterBypass getFilterBypass()
FilterBypass
for this delivery configuration.FilterBypass
for this delivery configuration, or
null if non configured.Copyright © 2020. All rights reserved.