Modifier and Type | Method and Description |
---|---|
abstract void |
JFinalConfig.configEngine(Engine me)
Config engine
|
Modifier and Type | Method and Description |
---|---|
static Engine |
ElKit.getEngine() |
Modifier and Type | Method and Description |
---|---|
Engine |
ActiveRecordPlugin.getEngine() |
Modifier and Type | Field and Description |
---|---|
protected Engine |
BaseModelGenerator.engine |
protected Engine |
ModelGenerator.engine |
protected Engine |
MappingKitGenerator.engine |
Modifier and Type | Method and Description |
---|---|
Engine |
SqlKit.getEngine() |
Modifier and Type | Field and Description |
---|---|
protected Engine |
RenderFactory.engine |
protected static Engine |
TemplateRender.engine |
Modifier and Type | Method and Description |
---|---|
Engine |
RenderManager.getEngine() |
Modifier and Type | Method and Description |
---|---|
void |
IRenderFactory.init(Engine engine,
Constants constants,
javax.servlet.ServletContext servletContext) |
void |
RenderManager.init(Engine engine,
Constants constants,
javax.servlet.ServletContext servletContext) |
void |
RenderFactory.init(Engine engine,
Constants constants,
javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
Engine |
Engine.addDirective(String directiveName,
Class<? extends Directive> directiveClass)
Add directive
|
Engine |
Engine.addDirective(String directiveName,
Directive directive)
Deprecated.
|
Engine |
Engine.addSharedFunction(ISource source)
Add shared function by ISource
|
Engine |
Engine.addSharedFunction(String... fileNames)
Add shared function with files
|
Engine |
Engine.addSharedFunction(String fileName)
Add shared function with file
|
Engine |
Engine.addSharedFunctionByString(String content)
Add shared function by string content
|
Engine |
Engine.addSharedMethod(Class<?> sharedMethodFromClass)
Add shared method from class
|
Engine |
Engine.addSharedMethod(Object sharedMethodFromObject)
Add shared method from object
|
Engine |
Engine.addSharedObject(String name,
Object object)
Add shared object
|
Engine |
Engine.addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
Add shared static method of Class
|
static Engine |
Engine.create(String engineName)
Create engine with engine name managed by JFinal
|
static Engine |
Engine.remove(String engineName)
Remove engine with engine name managed by JFinal
|
Engine |
Engine.removeDirective(String directiveName)
Remove directive
|
Engine |
Engine.removeSharedMethod(Class<?> clazz)
Remove shared Method of the Class
|
Engine |
Engine.removeSharedMethod(Method method)
Remove shared Method
|
Engine |
Engine.removeSharedMethod(String methodName)
Remove shared Method with method name
|
Engine |
Engine.setBaseTemplatePath(String baseTemplatePath) |
Engine |
Engine.setDatePattern(String datePattern) |
Engine |
Engine.setDevMode(boolean devMode)
设置 true 为开发模式,支持模板文件热加载
设置 false 为生产模式,不支持模板文件热加载,以达到更高的性能
|
Engine |
Engine.setEncoding(String encoding) |
Engine |
Engine.setOutputDirectiveFactory(IOutputDirectiveFactory outputDirectiveFactory)
Set output directive factory
|
Engine |
Engine.setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode)
Engine 独立设置为 devMode 可以方便模板文件在修改后立即生效,
但如果在 devMode 之下并不希望对 addSharedFunction(...),
添加的模板进行是否被修改的检测可以通过此方法设置 false 参进去
注意:Engine 在生产环境下(devMode 为 false),该参数无效
|
Engine |
Engine.setSourceFactory(ISourceFactory sourceFactory)
设置 ISourceFactory 用于为 engine 切换不同的 ISource 实现类
ISource 用于从不同的来源加载模板内容
|
Engine |
Engine.setToClassPathSourceFactory()
设置为 ClassPathSourceFactory 的快捷方法
|
Engine |
Engine.setWriterBufferSize(int bufferSize) |
static Engine |
Engine.use()
Using the main Engine
|
static Engine |
Engine.use(String engineName)
Using the engine with engine name
|
Modifier and Type | Method and Description |
---|---|
static void |
Engine.setMainEngine(Engine engine)
Set main engine
|
Modifier and Type | Field and Description |
---|---|
static Engine |
JFinalViewResolver.engine |
Modifier and Type | Method and Description |
---|---|
Engine |
JFinalViewResolver.getEngine() |
Copyright © 2018. All rights reserved.