public interface IEmapApp
extends com.wisedu.emap.pedestal.core.ICoreApp
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
IEmapApp.EmapAppType
应用的类型。
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
APP_CONFIG_NAME
应用的配置文件名。
|
static String |
APP_CUSTOM_RESOURCE_CONFIG
应用中自定义的静态资源映射配置文件。
|
static String |
APP_CUSTOM_SPRING_CONFIG
应用中自定义的spring配置文件所在路径。
|
static String |
CLASS_PATH
应用的class文件所在的目录。
|
static String |
CONFIG_PATH
应用中其它配置文件所在的目录。
|
static char |
FINAL_EXT_FLAG
最后的扩展应用名称。
|
static String |
JAR_EXT
jar包的后缀名。
|
static String |
LIB_PATH
应用的jar包所在的目录。
|
static String |
PARENT_DATA_SOURCE
使用父应用的数据源的标识。
|
static String |
PUB_CLASSES
应用需要发布的class文件所在的目录。
|
static String |
RESOURCE_PATH
版本2应用存放各类模型的目录。
|
static String |
WEB_PATH
应用的页面及静态资源所在的目录。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkAndReload()
检查应用的更新情况,并判断是否需要重新加载。
|
void |
checkInitialized()
检查当前应用是否初始化完成,如果未完成则进入等待。
|
IEmapAppContext |
getAppContext()
获取获取应用的上下文环境。
|
Map<String,Object> |
getCache()
获取应用的对象缓存。
|
ClassLoader |
getClassLoader()
获取应用的ClassLoader。
|
self.micromagic.util.PropertiesManager |
getConfig()
获取应用的配置管理者。
|
String |
getDataSourceId()
获取应用的数据源编号。
|
org.springframework.web.servlet.HandlerExecutionChain |
getHandler(javax.servlet.http.HttpServletRequest request)
获取选择控制器的处理链。
|
String |
getId()
获取应用管理平台给应用分配的id。
|
AppManager |
getManager()
获取应用所属的管理器。
|
String |
getName()
获取应用的名称。
|
IEmapApp |
getParent()
获取当前应用的父应用。
|
File |
getPath()
获取应用所在的路径。
|
self.micromagic.eterna.digester2.ConfigResource |
getResource(String configPath)
获取应用中指定配置路径的资源。
|
List<self.micromagic.eterna.digester2.ConfigResource> |
getResources(String suffix,
String configPath,
boolean recursive)
获取应用中指定路径下指定后缀(或目录)的所有资源。
|
org.springframework.context.ApplicationContext |
getSpring()
获取应用的spring容器。
|
EmapAppStatus |
getStatus()
获取当前应用的状态。
|
IEmapApp.EmapAppType |
getType()
获取应用的类型。
|
String |
getVersion()
获取应用的版本号。
|
self.micromagic.eterna.digester2.ConfigResource |
getWebRes(String path,
String appName)
获取一个web的配置资源。
|
boolean |
hasSpecialHandler()
判断当前应用中是否有覆盖页面或数据集的控制器。
|
boolean |
isExtendWeb()
是否需要扩展父应用的web。
|
boolean |
isValid()
判断当前应用是否有效,即成功初始化。
|
String |
locateJSP(PageContainer page)
根据给出的页面容器,定位JSP页面所在的位置。
|
String |
locateJSP(String path)
根据给出的路径,定位JSP页面所在的位置。
|
boolean |
needCheckMultipart()
是否需要检查请求的内容是否为多分块模型,并对请求对象进行转换。
|
void |
reload()
重新装载当前应用。
|
static final char FINAL_EXT_FLAG
static final String APP_CUSTOM_SPRING_CONFIG
static final String APP_CUSTOM_RESOURCE_CONFIG
AppManager getManager()
String getName()
getName 在接口中 com.wisedu.emap.pedestal.core.ICoreAppString getId()
getId 在接口中 com.wisedu.emap.pedestal.core.ICoreAppString getVersion()
IEmapApp.EmapAppType getType()
File getPath()
IEmapApp getParent()
boolean isExtendWeb()
String getDataSourceId()
EmapAppStatus getStatus()
boolean isValid()
void checkInitialized()
void reload()
void checkAndReload()
IEmapAppContext getAppContext()
ClassLoader getClassLoader()
org.springframework.context.ApplicationContext getSpring()
self.micromagic.util.PropertiesManager getConfig()
boolean needCheckMultipart()
self.micromagic.eterna.digester2.ConfigResource getResource(String configPath)
样例:
getResource("cp:/com/xxx"),表示获取classpath中的com包下xxx文件
getResource("web/xxx"),表示获取当前应用的web目录下的xxx文件
getResource("/opt/xxx"),表示获取当前盘opt目录下的xxx文件
注:这都是使用正斜杠
configPath - 配置路径List<self.micromagic.eterna.digester2.ConfigResource> getResources(String suffix, String configPath, boolean recursive)
suffix - 资源的后缀名(或目录,以"/"结束)configPath - 指定的配置路径recursive - 是否需要递归在子目录中查找getResource(String)org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request)
request - 请求对象boolean hasSpecialHandler()
self.micromagic.eterna.digester2.ConfigResource getWebRes(String path, String appName)
path - 资源文件的路径appName - 资源所在应用的名称, 如果是当前应用可以为空String locateJSP(PageContainer page)
page - 页面Copyright © 2022. All rights reserved.