Skip to content

Commit e097188

Browse files
committed
update docs
1 parent f93001a commit e097188

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### 1.1.0 (2014-12-15)
2+
13
* Add wildcards support
24
* Improve complex generics resolution
35
* Add access by generic name methods in GenericsContext

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ Maven:
4949
<dependency>
5050
<groupId>ru.vyarus</groupId>
5151
<artifactId>generics-resolver</artifactId>
52-
<version>1.0.0</version>
52+
<version>1.1.0</version>
5353
</dependency>
5454
```
5555

5656
Gradle:
5757

5858
```groovy
59-
compile 'ru.vyarus:generics-resolver:1.0.0'
59+
compile 'ru.vyarus:generics-resolver:1.1.0'
6060
```
6161

6262
### Usage
@@ -166,6 +166,28 @@ Any type could be resolved as string:
166166
context.toStringType(doSomething.getGenericReturnType()) == "List<Integer>"
167167
```
168168

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+
169191
### Use cases
170192

171193
Few real life usages.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.0.1-SNAPSHOT
1+
version=1.1.0-SNAPSHOT

0 commit comments

Comments
 (0)