Commit Graph

6 Commits

Author SHA1 Message Date
xue8 70b66046a9 demo: Avoid hard-coded file separator in sentinel-demo-dynamic-file-rule module (#1247) 2020-01-13 11:08:03 +08:00
Eric Zhao df27e3ef9d Code refactor and refinement for FileInJarReadableDataSource
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-15 17:02:24 +08:00
nick.ding 882a06007d Add FileInJarReadableDataSource to support reading config file in jar (#646) 2019-04-15 12:06:34 +08:00
Eric Zhao 007cd9d291 Some refactor of data source
- Add `close` method in WritableDataSource (to extend AutoCloseable in JDK 1.7 later)
- Separate the writable file data source from original class
- Add a sample to show how to register data sources via Sentinel init mechanism
- Separate a writable data source registry from original handler to make it clear

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao f3eb285445 Update demo of various data source to adapt to new changes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao c92fea5d46 Welcome to the world, Sentinel 2018-07-27 16:34:30 +08:00