| 程序包 | 说明 |
|---|---|
| cn.com.fishin.tuz.core | |
| cn.com.fishin.tuz.loader.json | |
| cn.com.fishin.tuz.loader.properties | |
| cn.com.fishin.tuz.loader.redis |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Tuz.load(Loadable resource)
加载一个资源文件
Load a resource
|
static void |
Tuz.reLoad(Loadable resource)
重新载入一个资源文件
ReLoad a resource
|
static void |
Tuz.unLoad(Loadable resource)
卸载一个资源文件
UnLoad a resource
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractJSONLoader
JSON 配置文件抽象加载器
JSON resources loader
|
class |
ClasspathJSONLoader
JSON 配置文件加载器
这个加载器专门用来加载类路径下的 json 配置文件,并返回 Map 集合
JSON file loader
This loader is used to load json file in classpath
|
class |
FileSystemJSONLoader
JSON 配置文件加载器
这个加载器专门用来加载文件系统中的 JSON 配置文件,并返回 Map 集合
JSON file loader
This loader is used to load JSON file in file System
|
class |
ReaderJSONLoader
JSON 配置文件加载器
默认使用 UTF8 字符集
这个加载器适用于使用 Reader 加载资源文件的加载器,
子类必须实现 getReader(String resourceFileName) 方法
JSON file loader
This loader uses Reader to load resource,
subclass must implement method getReader(String resourceFileName)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractPropertiesLoader
这个抽象类用于加载 .properties 文件
子类需要实现 loadProperties() 方法继而完善工作
This class is used to load .properties file
Subclass should override loadProperties() method
|
class |
ClasspathPropertiesLoader
Properties 配置文件加载器
这个加载器专门用来加载类路径下的 .properties 配置文件,并返回 Map 集合
Properties file loader
This loader is used to load .properties file in classpath
|
class |
FileSystemPropertiesLoader
Properties 配置文件加载器
这个加载器专门用来加载文件系统中的 .properties 配置文件,并返回 Map 集合
Properties file loader
This loader is used to load .properties file in file System
|
class |
InputStreamPropertiesLoader
已过时。
|
class |
ReaderPropertiesLoader
Properties 配置文件加载器
这个相比 cn.com.fishin.tuz.loader.properties.InputStreamPropertiesLoader
多了一个字符集属性,可以避免非英文字符出现乱码问题,默认使用 UTF8 字符集
这个加载器适用于使用 Reader 加载资源文件的加载器,
子类必须实现 getReader(String resourceFileName) 方法
Properties file loader
This loader uses Reader to load resource,
subclass must implement method getReader(String resourceFileName)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
RedisLoader
Redis 资源加载器
这个加载器并不会把 redis 上的资源拷贝到本机内存,
而是采用延迟加载的形式,就是每一次使用都去加载
Redis resource loader
|
Copyright © 2019. All Rights Reserved.