cn.dreampie.web
类 Config

java.lang.Object
  继承者 com.jfinal.config.JFinalConfig
      继承者 cn.dreampie.web.Config

public abstract class Config
extends com.jfinal.config.JFinalConfig

Created by wangrenhui on 14-1-3.


构造方法摘要
Config()
           
 
方法摘要
 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");
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Config

public Config()
方法详细信息

configConstant

public abstract void configConstant(com.jfinal.config.Constants me)
Config constant

指定者:
com.jfinal.config.JFinalConfig 中的 configConstant

configRoute

public abstract void configRoute(com.jfinal.config.Routes me)
Config route

指定者:
com.jfinal.config.JFinalConfig 中的 configRoute

configPlugin

public abstract void configPlugin(com.jfinal.config.Plugins me)
Config plugin

指定者:
com.jfinal.config.JFinalConfig 中的 configPlugin

configInterceptor

public abstract void configInterceptor(com.jfinal.config.Interceptors me)
Config interceptor applied to all actions.

指定者:
com.jfinal.config.JFinalConfig 中的 configInterceptor

configHandler

public abstract void configHandler(com.jfinal.config.Handlers me)
Config handler

指定者:
com.jfinal.config.JFinalConfig 中的 configHandler

afterJFinalStart

public void afterJFinalStart()
Call back after JFinal start

覆盖:
com.jfinal.config.JFinalConfig 中的 afterJFinalStart

beforeJFinalStop

public void beforeJFinalStop()
Call back before JFinal stop

覆盖:
com.jfinal.config.JFinalConfig 中的 beforeJFinalStop

loadPropertyFile

public Properties loadPropertyFile(String file)
Load property file Example: loadPropertyFile("db_username_pass.txt");

覆盖:
com.jfinal.config.JFinalConfig 中的 loadPropertyFile
参数:
file - the file in WEB-INF directory or resources

getProperty

public String getProperty(String key)
覆盖:
com.jfinal.config.JFinalConfig 中的 getProperty

getProperty

public String getProperty(String key,
                          String defaultValue)
覆盖:
com.jfinal.config.JFinalConfig 中的 getProperty

getPropertyToInt

public Integer getPropertyToInt(String key)
覆盖:
com.jfinal.config.JFinalConfig 中的 getPropertyToInt

getPropertyToInt

public Integer getPropertyToInt(String key,
                                Integer defaultValue)
覆盖:
com.jfinal.config.JFinalConfig 中的 getPropertyToInt

getPropertyToBoolean

public Boolean getPropertyToBoolean(String key)
覆盖:
com.jfinal.config.JFinalConfig 中的 getPropertyToBoolean

getPropertyToBoolean

public Boolean getPropertyToBoolean(String key,
                                    boolean defaultValue)
覆盖:
com.jfinal.config.JFinalConfig 中的 getPropertyToBoolean


Copyright © 2014. All rights reserved.