| 程序包 | 说明 |
|---|---|
| org.noear.solon | |
| org.noear.solon.core |
| 限定符和类型 | 方法和说明 |
|---|---|
static XApp |
XApp.global()
唯一实例
|
XApp |
XApp.onError(Act2<XContext,Throwable> event) |
static XApp |
XApp.start(Class<?> source,
String[] args)
启动应用(全局只启动一个),执行序列
1.加载配置(约定:application.properties 为应用配置文件)
2.加载自发现插件(约定:/solonplugin/*.properties 为插件配置文件)
3.加载注解Bean(约定:@XBean,@XController,@XInterceptor 为bean)
4.执行Bean加载事件(采用:注册事件的方式进行安需通知)
|
static XApp |
XApp.start(Class<?> source,
String[] args,
Act1<XApp> builder) |
static XApp |
XApp.start(Class<?> source,
XMap argx,
Act1<XApp> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
static XApp |
XApp.start(Class<?> source,
String[] args,
Act1<XApp> builder) |
static XApp |
XApp.start(Class<?> source,
XMap argx,
Act1<XApp> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
BeanWebWrap.do_loadHandler(XApp app,
BeanWrap bw,
XMapping cxm) |
void |
BeanWebWrap.load(XApp app) |
void |
XPlugin.start(XApp app)
启动 (stop 可通过: app.onStop(..)
|
Copyright © 2019. All rights reserved.