public class FreeMarkerViewDispatcher extends Object implements ViewDispatcher
Created: 2016. 1. 27.
VIEW_DISPATCHER_SETTING_NAME
Constructor and Description |
---|
FreeMarkerViewDispatcher(freemarker.template.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(Activity activity,
DispatchResponseRule dispatchResponseRule)
Dispatch to other resources as the given rule.
|
boolean |
isSingleton()
Return whether this view dispatcher corresponds to a singleton instance.
|
void |
setPrefix(String prefix)
Sets the prefix for the template name.
|
void |
setSuffix(String suffix)
Sets the suffix for the template name.
|
public FreeMarkerViewDispatcher(freemarker.template.Configuration configuration)
public void setPrefix(String prefix)
prefix
- the new prefix for the template namepublic void setSuffix(String suffix)
suffix
- the new suffix for the template namepublic void dispatch(Activity activity, DispatchResponseRule dispatchResponseRule) throws ViewDispatchException
ViewDispatcher
dispatch
in interface ViewDispatcher
activity
- the current activitydispatchResponseRule
- the dispatch response ruleViewDispatchException
- the view dispatch exceptionpublic boolean isSingleton()
ViewDispatcher
isSingleton
in interface ViewDispatcher
Copyright © 2008–2017 Aspectran.com. All rights reserved.