public class Templates extends Object
| 构造器和说明 |
|---|
Templates() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear() |
static Map<Object,ITemplateable> |
createOrGet(Class<? extends ITemplateable> clz)
加载模板时调用,或热更新时调用
|
static <T> Map<Object,T> |
get(Class<T> clz) |
static <T> T |
get(Class<T> clz,
Object templateId) |
static List<x7.core.bean.KV> |
getSchema(Class<? extends ITemplateable> key) |
static void |
put(Class<? extends ITemplateable> key,
List<x7.core.bean.KV> value) |
static void |
put(Class<? extends ITemplateable> clz,
Map<Object,ITemplateable> map) |
public static void clear()
public static Map<Object,ITemplateable> createOrGet(Class<? extends ITemplateable> clz)
clz - public static void put(Class<? extends ITemplateable> clz, Map<Object,ITemplateable> map)
public static void put(Class<? extends ITemplateable> key, List<x7.core.bean.KV> value)
public static List<x7.core.bean.KV> getSchema(Class<? extends ITemplateable> key)
Copyright © 2019. All rights reserved.