Package | Description |
---|---|
act.controller | |
act.controller.bytecode | |
act.controller.meta | |
act.handler.builtin.controller.impl | |
act.util |
Modifier and Type | Method and Description |
---|---|
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(HandlerMethodMetaInfo meta,
java.lang.Object v,
ActionContext context,
boolean hasTemplate)
Infer a
Result from a object value v: If v is null then null returned If v is instance of Result then it is returned directly to infer the Result If v is instance of InputStream then Controller.Util.inferResult(InputStream, ActionContext) is used to infer the Result If v is instance of File then Controller.Util.inferResult(File, ActionContext) is used to infer the Result If v is instance of Map then Controller.Util.inferResult(Map, ActionContext) is used to infer the Result If v is an array of Object then Controller.Util.inferResult(Object[], ActionContext) is used to infer the Result |
Constructor and Description |
---|
HandlerEnhancer(act.asm.MethodVisitor mv,
HandlerMethodMetaInfo meta,
int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions) |
Modifier and Type | Class and Description |
---|---|
class |
HandlerMethodMetaInfo<T extends HandlerMethodMetaInfo>
Common meta data storage for both
ControllerAction and Handler |
Modifier and Type | Class and Description |
---|---|
class |
ActionMethodMetaInfo |
class |
CatchMethodMetaInfo
Unlike other interceptors (Before/After/Finally), Catch interceptor has a special attribute: value, the exception class.
|
class |
InterceptorMethodMetaInfo
Stores all method level information needed to generate
interceptors |
Modifier and Type | Method and Description |
---|---|
HandlerMethodMetaInfo |
HandlerMethodMetaInfo.addParam(HandlerParamMetaInfo param) |
HandlerMethodMetaInfo |
ControllerClassMetaInfo.handler(java.lang.String name) |
HandlerMethodMetaInfo |
ActionMethodMetaInfo.merge(ControllerClassMetaInfoManager infoBase,
App app) |
HandlerMethodMetaInfo |
HandlerMethodMetaInfo.propertySpec(PropertySpec.MetaInfo propertySpec) |
HandlerMethodMetaInfo |
HandlerMethodMetaInfo.returnComponentType(act.asm.Type type) |
Constructor and Description |
---|
HandlerMethodMetaInfo(HandlerMethodMetaInfo copy,
ControllerClassMetaInfo clsInfo)
Construct a
HandlerMethodMetaInfo from a copy with a different class info. |
Modifier and Type | Class and Description |
---|---|
class |
ReflectedHandlerInvoker<M extends HandlerMethodMetaInfo>
Implement handler using https://github.com/EsotericSoftware/reflectasm
|
Modifier and Type | Method and Description |
---|---|
static PropertySpec.MetaInfo |
PropertySpec.MetaInfo.withCurrent(HandlerMethodMetaInfo methodMetaInfo,
ActContext context) |
Copyright © 2014–2017 ActFramework. All rights reserved.