public class EntityConverterFromExecutor extends Object implements EntityConverter
| Constructor and Description |
|---|
EntityConverterFromExecutor(ActionExecuteHandler executeHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRead()
是否允许读
|
boolean |
allowWrite()
是否允许写
|
boolean |
canRead(Context ctx,
String mime)
是否能读
|
boolean |
canWrite(String mime,
Context ctx)
是否能写
|
boolean |
isInstance(Class<?> clz)
实例检测(移除时用)
|
Object[] |
read(Context ctx,
Object target,
MethodWrap mWrap)
读取(参数分析)
|
void |
write(Object data,
Context ctx)
写入(渲染)
|
String |
writeAndReturn(Object data,
Context ctx)
写入并返回(渲染并返回(默认不实现))
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmappings, namepublic EntityConverterFromExecutor(ActionExecuteHandler executeHandler)
public boolean isInstance(Class<?> clz)
EntityConverterisInstance in interface EntityConverterpublic boolean allowWrite()
EntityConverterallowWrite in interface EntityConverterpublic boolean canWrite(String mime, Context ctx)
EntityConvertercanWrite in interface EntityConverterpublic String writeAndReturn(Object data, Context ctx) throws Throwable
EntityConverterwriteAndReturn in interface EntityConverterThrowablepublic void write(Object data, Context ctx) throws Throwable
EntityConverterwrite in interface EntityConverterdata - 数据ctx - 上下文Throwablepublic boolean allowRead()
EntityConverterallowRead in interface EntityConverterpublic boolean canRead(Context ctx, String mime)
EntityConvertercanRead in interface EntityConverterpublic Object[] read(Context ctx, Object target, MethodWrap mWrap) throws Throwable
EntityConverterread in interface EntityConverterctx - 上下文target - 控制器mWrap - 函数包装器ThrowableCopyright © 2025. All rights reserved.