| 程序包 | 说明 |
|---|---|
| org.xmeta | |
| org.xmeta.cache | |
| org.xmeta.util |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<Thing,ActionContext> |
Bindings.getContexts() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ActionListener.actionExecuted(Action action,
Object caller,
ActionContext actionContext,
Map<String,Object> parameters,
long namoTime,
boolean successed)
动作已被执行之后触发的事件。
|
void |
ActionListener.actionExecuted(Thing thing,
String method,
ActionContext actionContext,
Map<String,Object> parameters,
long namoTime,
boolean successed)
增加了事物动作的监听。
|
void |
World.debug(ActionContext actionContext)
执行一个已经设置了断点的动作,可以把该方法的调用嵌入到代码中,从而可以
实现在代码中的调试断点。
|
Object |
Thing.doAction(String name,
ActionContext actionContext)
执行一个动作,把自己作为self变量放入动作上下文中。
|
Object |
Thing.doAction(String name,
ActionContext actionContext,
Map<String,Object> parameters)
执行一个动作,把自己作为self变量放入动作上下文中。
|
Object |
Thing.doAction(String name,
ActionContext actionContext,
Map<String,Object> parameters,
boolean isSubAction)
执行一个动作,把自己作为self变量放入动作上下文中。
|
Object |
Thing.doAction(String name,
ActionContext actionContext,
Object... parameters) |
static Throwable |
Action.doContextMethod(List<ThingEntry> contexts,
ActionContext actionContext,
String methodName,
Throwable exception) |
Object |
Thing.doExec(String name,
ActionContext context,
Object... params) |
static Throwable |
Action.doThingContextMethod(List<Thing> contexts,
ActionContext actionContext,
String methodName,
Throwable exception)
执行上下文的成功或者失败的方法。
|
Object |
Action.exec(ActionContext context,
Object... params) |
Object |
Thing.exec(String name,
ActionContext context,
Object... params) |
void |
Thing.fireGlobalContextDoActionEvent(String name,
Map<String,Object> params,
ActionContext actionContext) |
Class |
Action.getActionClass(ActionContext actionContext)
返回动作的类,如果存在。
|
Class |
World.getActionClass(String actionPath,
ActionContext actionContext)
返回动作类,通常是动作事物对应的类,有些动作可能没有对应类。
|
Class |
World.getActionClass(Thing actionThing,
ActionContext actionContext)
返回动作类,通常是动作事物对应的类,有些动作可能没有对应类。
|
BigDecimal |
Thing.getBigDecimal(String name,
BigDecimal defaultValue,
ActionContext actionContext) |
BigInteger |
Thing.getBigInteger(String name,
BigInteger defaultValue,
ActionContext actionContext) |
boolean |
Thing.getBoolean(String name,
boolean defaultValue,
ActionContext actionContext) |
byte |
Thing.getByte(String name,
byte defaultValue,
ActionContext actionContext) |
byte[] |
Thing.getBytes(String name,
byte[] defaultValue,
ActionContext actionContext) |
Callable<Object> |
Thing.getCallable(ActionContext actionContext)
把当前事物转化为一个Callable。
|
Callable<Object> |
Thing.getCallable(ActionContext actionContext,
Map<String,Object> params)
把当前事物转化为一个Callable。
|
char |
Thing.getChar(String name,
char defaultValue,
ActionContext actionContext) |
Date |
Thing.getDate(String name,
Date defaultValue,
ActionContext actionContext) |
double |
Thing.getDouble(String name,
double defaultValue,
ActionContext actionContext) |
float |
Thing.getFloat(String name,
float defaultValue,
ActionContext actionContext) |
int |
Thing.getInt(String name,
int defaultValue,
ActionContext actionContext) |
long |
Thing.getLong(String name,
long defaultValue,
ActionContext actionContext) |
Object |
Thing.getObject(String name,
ActionContext actionContext)
从事物中取指定的属性的字符串的值作为变量名,然后从ActionContext中取变量,支持var:或ognl:,默认相当于 var:。
|
Runnable |
Thing.getRunnable(ActionContext actionContext)
把当前事物转化为一个Runnable。
|
Runnable |
Thing.getRunnable(ActionContext actionContext,
Map<String,Object> params)
把当前事物转化为一个Runnable。
|
short |
Thing.getShort(String name,
short defaultValue,
ActionContext actionContext) |
String |
Thing.getString(String name,
String defaultValue,
ActionContext actionContext)
通过属性值从上下文中取字符串,通过UtilString获取字符串,如果返回null或空,那么返回defaultValue。
|
protected void |
ActionException.initBindings(ActionContext actionContext) |
static void |
Action.initContext(Thing context,
ActionContext actionContext)
初始化上下文。
|
Object |
Action.run(ActionContext context) |
Object |
Action.run(ActionContext context,
Map<String,Object> parameters) |
Object |
Action.run(ActionContext context,
Map<String,Object> parameters,
boolean isSubAction) |
Object |
Action.run(ActionContext context,
Map<String,Object> parameters,
Object caller,
boolean isSubAction) |
Object |
Thing.run(String name,
ActionContext context)
执行一个动作,不把自己放入动作上下文中。
|
Object |
Thing.run(String name,
ActionContext context,
Map<String,Object> parameters)
执行一个动作,不把自己放入动作上下文中。
|
Object |
Thing.run(String name,
ActionContext context,
Map<String,Object> parameters,
boolean isSubAction)
执行一个动作,不把自己放入动作上下文中。
|
Object |
Thing.run(String name,
ActionContext context,
Map<String,Object> parameters,
boolean isSubAction,
boolean includeSelf)
执行一个动作。
|
Object |
Thing.run(String name,
ActionContext context,
Object[] parameters,
boolean isSubAction,
boolean includeSelf)
按普通参数的方式执行。
|
Object |
World.runAction(String actionPath,
ActionContext actionContext) |
Object |
World.runAction(String actionPath,
ActionContext actionContext,
Map<String,Object> parameters)
执行一个动作。
|
void |
World.runActionAsync(String actionPath,
ActionContext actionContext) |
void |
World.runActionAsync(String actionPath,
ActionContext actionContext,
Map<String,Object> parameters) |
Object |
Action.runArrayParams(ActionContext context,
Object[] params_,
Object caller,
boolean isSubAction) |
Object |
Action.runMapParams(ActionContext context,
Map<String,Object> parameters,
Object caller,
boolean isSubAction) |
| 构造器和说明 |
|---|
ActionContext(ActionContext actionContext)
通过给定的变量绑定创建变量上下文,其中传入的变量上下文的栈全部放入不可push和pop的栈中,
并压入一个新的所有线程都共用的全局变量栈,传入的变量上下文比新的全局变量更加全局。
|
ActionException(String message,
ActionContext actionContext) |
ActionException(String message,
Throwable cause,
ActionContext actionContext) |
ActionException(Throwable cause,
ActionContext actionContext) |
ThrowableRecord(Throwable throwable,
ActionContext actionContext) |
XMetaException(ActionContext actionContext) |
XMetaException(String message,
ActionContext actionContext) |
XMetaException(String message,
Throwable cause,
ActionContext actionContext) |
XMetaException(Throwable cause,
ActionContext actionContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
GeneratedObjectEntry.getObject(ActionContext actionContext)
获取生成的对象。
|
static Object |
GeneratedObjectEntry.getObject(Thing thing,
String method,
ActionContext actionContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
ActionContext |
ActionContainer.getActionContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
UtilString.createObjectFromParams(Map<String,?> values,
String thingPath,
ActionContext actionContext) |
static Object |
UtilString.createObjectFromParams(String params,
String thingPath,
ActionContext actionContext) |
static void |
UtilString.debug(ActionContext context,
Object obj) |
Object |
ActionContainer.doAction(String name,
ActionContext context) |
Object |
ActionContainer.doAction(String name,
ActionContext context,
Map<String,Object> parameters) |
Object |
ActionContainer.doAction(String name,
ActionContext context,
Object... parameters) |
static <T> T |
UtilData.get(Thing thing,
String attributeName,
ActionContext actionContext) |
static Object |
UtilData.getData(String value,
ActionContext actionContext) |
static Object |
UtilData.getData(Thing thing,
String attributeName,
ActionContext actionContext)
通过事物的属性获取数据。
|
static boolean |
UtilAction.getDebugLog(Thing actionThing,
ActionContext actionContext)
返回是否是打印调试日志。
|
static Object |
UtilFile.getFileOrInputStream(String path,
ActionContext actionContext)
从路径获取文件或输入流。
|
static Object |
UtilData.getObject(Thing thing,
String attributeName,
ActionContext actionContext)
返回通过属性定义的对象,首先使用UtilData获取,如果没有从actionContext中获取。
|
static <T> T |
UtilData.getObjectByType(Thing thing,
String attributeName,
Class<T> t,
ActionContext actionContext) |
static String |
UtilString.getString(String value,
ActionContext actionContext)
从制定的字符串值中读取字符串。
|
static String |
UtilString.getString(Thing thing,
String attribute,
ActionContext actionContext)
从事物取指定的属性的字符串值,然后从actionContext中取可能的值。
|
static String |
UtilData.getString(Thing thing,
String attributeName,
ActionContext actionContext) |
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
ActionContext actionContext)
根据事物的属性返回指定的事物。
|
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
String childThingPath,
ActionContext actionContext)
先从事物指定的属性上获取事物,如果不存在从子节点的路径上获取。
|
static Bindings |
UtilAction.getVarScope(String varScope,
ActionContext actionContext)
通过VarScope的字符串返回相应的Scope,如Gloabl, Local等。
|
static Bindings |
UtilAction.getVarScope(Thing action,
ActionContext actionContext)
获取变量范围。
|
static Object |
UtilJava.invokeMethod(String className,
String methodName,
ActionContext actionContext)
调用参数是ActionContext的静态方法。
|
static void |
UtilAction.putVarByActioScope(Thing action,
String varName,
Object var,
ActionContext actionContext)
把变量赋值到动作定义的变量范围中。
|
| 构造器和说明 |
|---|
ActionContainer(Thing actions,
ActionContext actionContext) |
ThingCallable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
ThingRunnable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
Copyright © 2016 xworker.org. All rights reserved.