public interface Loadable extends Tuzable
可加载的接口
实现接口中的加载方法,以获得成为 tuz 插件的资格
Loadable interface
You can obtain the power of being a loader of tuz by implementing this interface
Email: fishinlove@163.com
created by 2019/03/28 14:25:12
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
load()
加载资源,主要是配置文件
返回一个 Map 集合,键值就是 key,而 value 就是键值对应的属性值
Load resources
Return a Map Collection, the key is the key, and the value is the attribute of the key
|
java.lang.String |
namespace()
获取这个加载资源的命名空间
Get the namespace
|
java.lang.String namespace()
获取这个加载资源的命名空间
Get the namespace
这个资源的命名空间
The namespace of this resource
java.util.Map<java.lang.String,java.lang.String> load()
throws java.io.IOException
加载资源,主要是配置文件
返回一个 Map 集合,键值就是 key,而 value 就是键值对应的属性值
Load resources
Return a Map Collection, the key is the key, and the value is the attribute of the key
注意这个集合的泛型是 <String, Object> 的
Notice: The map is String and Object
java.io.IOException - 找不到资源文件就会抛出这个异常
The resource is not found
Copyright © 2019. All Rights Reserved.