@Ignored public interface IApplication extends IDestroyable
Modifier and Type | Interface and Description |
---|---|
static class |
IApplication.Environment
运行模式枚举
|
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_CONFIG_FILE |
static String |
SYSTEM_CONFIG_HOME |
static String |
SYSTEM_ENV |
static String |
SYSTEM_MAIN_CLASS |
static String |
SYSTEM_PACKAGES |
static String |
YMP_BASE_PACKAGE_NAME |
Modifier and Type | Method and Description |
---|---|
IBeanFactory |
getBeanFactory()
获取对象工厂
|
IApplicationConfigureFactory |
getConfigureFactory()
获取应用容器配置器工厂
|
Events |
getEvents()
获取事件管理器
|
I18N |
getI18n()
获取国际化资源管理器
|
InterceptSettings |
getInterceptSettings()
获取拦截器配置
|
ModuleManager |
getModuleManager()
获取模块管理器
|
String |
getParam(String name)
获取由name指定的全局参数值
|
String |
getParam(String name,
String defaultValue)
获取由name指定的全局参数值,若参数值为空则返回默认值
|
IConfigReader |
getParamConfigReader()
获取全局配置参数读取器
|
Map<String,String> |
getParams()
获取框架全局参数映射
|
RecycleHelper |
getRecycleHelper()
获取对象资源回收助手
|
IApplication.Environment |
getRunEnv()
获取当前运行环境
|
void |
initialize()
初始化
|
boolean |
isDevEnv()
是否为开发环境
|
boolean |
isInitialized()
是否已初始化
|
boolean |
isProductEnv()
是否为生产环境
|
boolean |
isTestEnv()
是否为测试环境
|
close
static final String YMP_BASE_PACKAGE_NAME
static final String SYSTEM_ENV
static final String SYSTEM_PACKAGES
static final String SYSTEM_CONFIG_HOME
static final String SYSTEM_CONFIG_FILE
static final String SYSTEM_MAIN_CLASS
boolean isInitialized()
IApplicationConfigureFactory getConfigureFactory()
ModuleManager getModuleManager()
IBeanFactory getBeanFactory()
RecycleHelper getRecycleHelper()
I18N getI18n()
boolean isTestEnv()
boolean isDevEnv()
boolean isProductEnv()
IApplication.Environment getRunEnv()
Events getEvents()
InterceptSettings getInterceptSettings()
String getParam(String name, String defaultValue)
name
- 参数名称defaultValue
- 默认值IConfigReader getParamConfigReader()
Copyright © 2022. All rights reserved.