public abstract class BaseFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PayloadCacheProvider |
cacheProvider |
protected List<DataBinder> |
dataBinders |
protected List<Processor> |
processors |
| Constructor and Description |
|---|
BaseFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeProcessors(Item item,
RunPhase runPhase,
RequestContext context)
Runs all the processors on an item.
|
List<DataBinder> |
getDataBinders() |
List<Processor> |
getProcessors() |
protected DataBinder |
selectDataBinder(String source)
Method finds the relevant databinder for given source by calling canDeserialize() on them.
|
void |
setCacheProvider(PayloadCacheProvider cacheAgent)
Set the cache agent.
|
void |
setDataBinders(List<DataBinder> dataBinder) |
void |
setProcessors(List<Processor> processors)
Configure through Spring
|
protected PayloadCacheProvider cacheProvider
protected List<DataBinder> dataBinders
public void setProcessors(List<Processor> processors)
processors - list of Processors to runpublic void executeProcessors(Item item, RunPhase runPhase, RequestContext context) throws ProcessorException
item - The DD4T ItemProcessorExceptionprotected DataBinder selectDataBinder(String source) throws FactoryException
source - FactoryExceptionpublic List<DataBinder> getDataBinders()
public void setDataBinders(List<DataBinder> dataBinder)
public void setCacheProvider(PayloadCacheProvider cacheAgent)
Copyright © 2018. All rights reserved.