T
- as Template Typepublic interface Publisher<T,CONTEXT>
ContentDescriber
or ContentFacet
or any contentPublisher
is not responsible for any filter or formatting of data; refer to IPublisherAdapter
that normally
calls the Publisher
.Modifier and Type | Method and Description |
---|---|
void |
addContext(Map objectMap)
Deprecated.
@see
setContext(Object) |
void |
clearContext()
Clear DataMap & Data Context added by
this#addContext(Map) |
void |
publish(String outputPath)
Publish to implementation specific Output and also send a copy back via Writer.
|
void |
publish(Writer writer)
Publish output to
Writer |
void |
setContext(CONTEXT context)
Supply a Context to the Publisher
Note: This will replace any existing context map. |
void |
setTemplate(String path) |
void |
setTemplate(T template) |
void setTemplate(T template)
template
- as Ttemplate
- void setTemplate(String path) throws Exception
url/filePath
- of Templatetemplate
- Exception
- (like path not found, Parsing exceptions, etc.@Deprecated void addContext(Map objectMap)
setContext(Object)
objectMap
- as Map of Name as String, corresponding Object to insert into Contextvoid setContext(CONTEXT context)
context
- void clearContext()
this#addContext(Map)
void publish(String outputPath) throws Exception
Copyright © 2018. All rights reserved.