public abstract class JFinalConfig
extends com.jfinal.config.JFinalConfig
| 构造器和说明 |
|---|
JFinalConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterJFinalStart()
Call back after JFinal start
|
void |
beforeJFinalStop()
Call back before JFinal stop
|
abstract void |
configConstant(com.jfinal.config.Constants me)
Config constant
|
abstract void |
configHandler(com.jfinal.config.Handlers me)
Config handler
|
abstract void |
configInterceptor(com.jfinal.config.Interceptors me)
Config interceptor applied to all actions.
|
abstract void |
configPlugin(com.jfinal.config.Plugins me)
Config plugin
|
abstract void |
configRoute(com.jfinal.config.Routes me)
Config route
|
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
Boolean |
getPropertyToBoolean(String key) |
Boolean |
getPropertyToBoolean(String key,
boolean defaultValue) |
Integer |
getPropertyToInt(String key) |
Integer |
getPropertyToInt(String key,
Integer defaultValue) |
Properties |
loadPropertyFile(String file)
Load property file
Example: loadPropertyFile("db_username_pass.txt");
|
public abstract void configConstant(com.jfinal.config.Constants me)
configConstant 在类中 com.jfinal.config.JFinalConfigpublic abstract void configRoute(com.jfinal.config.Routes me)
configRoute 在类中 com.jfinal.config.JFinalConfigpublic abstract void configPlugin(com.jfinal.config.Plugins me)
configPlugin 在类中 com.jfinal.config.JFinalConfigpublic abstract void configInterceptor(com.jfinal.config.Interceptors me)
configInterceptor 在类中 com.jfinal.config.JFinalConfigpublic abstract void configHandler(com.jfinal.config.Handlers me)
configHandler 在类中 com.jfinal.config.JFinalConfigpublic void afterJFinalStart()
afterJFinalStart 在类中 com.jfinal.config.JFinalConfigpublic void beforeJFinalStop()
beforeJFinalStop 在类中 com.jfinal.config.JFinalConfigpublic Properties loadPropertyFile(String file)
loadPropertyFile 在类中 com.jfinal.config.JFinalConfigfile - the file in WEB-INF directorypublic String getProperty(String key)
getProperty 在类中 com.jfinal.config.JFinalConfigpublic String getProperty(String key, String defaultValue)
getProperty 在类中 com.jfinal.config.JFinalConfigpublic Integer getPropertyToInt(String key)
getPropertyToInt 在类中 com.jfinal.config.JFinalConfigpublic Integer getPropertyToInt(String key, Integer defaultValue)
getPropertyToInt 在类中 com.jfinal.config.JFinalConfigpublic Boolean getPropertyToBoolean(String key)
getPropertyToBoolean 在类中 com.jfinal.config.JFinalConfigCopyright © 2014. All rights reserved.