File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change
1
+ ### 1.1.0 (2014-12-15)
2
+
1
3
* Add wildcards support
2
4
* Improve complex generics resolution
3
5
* Add access by generic name methods in GenericsContext
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ Maven:
49
49
<dependency >
50
50
<groupId >ru.vyarus</groupId >
51
51
<artifactId >generics-resolver</artifactId >
52
- <version >1.0 .0</version >
52
+ <version >1.1 .0</version >
53
53
</dependency >
54
54
```
55
55
56
56
Gradle:
57
57
58
58
``` groovy
59
- compile 'ru.vyarus:generics-resolver:1.0 .0'
59
+ compile 'ru.vyarus:generics-resolver:1.1 .0'
60
60
```
61
61
62
62
### Usage
@@ -166,6 +166,28 @@ Any type could be resolved as string:
166
166
context.toStringType(doSomething.getGenericReturnType()) == "List<Integer>"
167
167
```
168
168
169
+ ### Cache
170
+
171
+ If you use JRebel or other class reloading tool (maybe some other reason) you will need to disable descriptors caching.
172
+
173
+ To do it set system property or environment variable:
174
+
175
+ ```
176
+ ru.vyarus.java.generics.resolver.context.GenericsInfoFactory.cache=false
177
+ ```
178
+
179
+ Or from code:
180
+
181
+ ``` java
182
+ GenericsInfoFactory . disableCache();
183
+ ```
184
+
185
+ Also you can clear cache manually:
186
+
187
+ ``` java
188
+ GenericsInfoFactory . clearCache()
189
+ ```
190
+
169
191
### Use cases
170
192
171
193
Few real life usages.
Original file line number Diff line number Diff line change 1
- version =1.0.1 -SNAPSHOT
1
+ version =1.1.0 -SNAPSHOT
You can’t perform that action at this time.
0 commit comments