Class DocumentPlaceholderProvider<T extends BaseDocument>
java.lang.Object
com.mclds.plugins.server.utils.placeholder.DocumentPlaceholderProvider<T>
- All Implemented Interfaces:
PlaceholderProvider
public class DocumentPlaceholderProvider<T extends BaseDocument>
extends Object
implements PlaceholderProvider
Mongo Document 数据的命令行模版变量提供器
如果一个 document 的属性有:
String uid; String world; String name;
那么可以在命令行中使用 {{uid}} {{world}} {{name}} 来进行替换
String uid; String world; String name;
那么可以在命令行中使用 {{uid}} {{world}} {{name}} 来进行替换
如果是嵌套的对象,那么会进行递归解析
Location location;
那么可以在命令行中使用 {{location.x}} {{location.y}} {{location.z}} 来进行替换
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
document
-
-
Constructor Details
-
DocumentPlaceholderProvider
-
-
Method Details
-
resolve
-
get
- Specified by:
getin interfacePlaceholderProvider
-