public class EngineConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
Constructor and Description |
---|
EngineConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addDirective(String directiveName,
Class<? extends Directive> directiveClass) |
void |
addDirective(String directiveName,
Directive directive)
Deprecated.
|
void |
addSharedFunction(ISource source)
Add shared function by ISource
|
void |
addSharedFunction(String... fileNames)
Add shared function with files
|
void |
addSharedFunction(String fileName)
Add shared function with file
|
void |
addSharedFunctionByString(String content)
Add shared function by string content
|
void |
addSharedMethod(Class<?> sharedMethodFromClass)
Add shared method from class
|
void |
addSharedMethod(Object sharedMethodFromObject)
Add shared method from object
|
void |
addSharedObject(String name,
Object object) |
void |
addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
Add shared static method of Class
|
String |
getBaseTemplatePath() |
String |
getDatePattern() |
Class<? extends Directive> |
getDirective(String directiveName) |
String |
getEncoding() |
Output |
getOutputDirective(ExprList exprList,
Location location) |
SharedMethodKit |
getSharedMethodKit() |
ISourceFactory |
getSourceFactory() |
boolean |
isDevMode() |
void |
removeDirective(String directiveName) |
void |
removeSharedMethod(Class<?> sharedClass)
Remove shared Method of the Class
|
void |
removeSharedMethod(Method method)
Remove shared Method
|
void |
removeSharedMethod(String methodName)
Remove shared Method with method name
|
void |
setBaseTemplatePath(String baseTemplatePath) |
void |
setDatePattern(String datePattern) |
void |
setEncoderFactory(EncoderFactory encoderFactory) |
void |
setEncoding(String encoding) |
void |
setOutputDirectiveFactory(IOutputDirectiveFactory outputDirectiveFactory)
Set output directive factory
|
void |
setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode) |
void |
setWriterBufferSize(int bufferSize) |
public static final String DEFAULT_ENCODING
public void addSharedFunction(String fileName)
public void addSharedFunction(String... fileNames)
public void addSharedFunctionByString(String content)
public void addSharedFunction(ISource source)
public void setOutputDirectiveFactory(IOutputDirectiveFactory outputDirectiveFactory)
public boolean isDevMode()
public ISourceFactory getSourceFactory()
public void setBaseTemplatePath(String baseTemplatePath)
public String getBaseTemplatePath()
public void setEncoding(String encoding)
public void setEncoderFactory(EncoderFactory encoderFactory)
public void setWriterBufferSize(int bufferSize)
public String getEncoding()
public void setDatePattern(String datePattern)
public String getDatePattern()
public void setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode)
@Deprecated public void addDirective(String directiveName, Directive directive)
public void addDirective(String directiveName, Class<? extends Directive> directiveClass)
public void removeDirective(String directiveName)
public void addSharedMethod(Object sharedMethodFromObject)
public void addSharedMethod(Class<?> sharedMethodFromClass)
public void addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
public void removeSharedMethod(String methodName)
public void removeSharedMethod(Class<?> sharedClass)
public void removeSharedMethod(Method method)
public SharedMethodKit getSharedMethodKit()
Copyright © 2018. All rights reserved.