Greenwood
e8199bd93d
addressing @jochenberger's code review comments, Created by... is IntelliJ auto-creation -- added Apache license headers
8 years ago
mattg
76cb105d4a
removing unused import - fixing 2nd call to get() to avoid recomputation
8 years ago
mattg
965e49e2ca
Fixes Issue #234 using late binding, ideally this might be a lambda that encapsulates its state -- given support for JDK 6+, its encapsulated state is maintained in an implementation of the interface ILateBindingValue, one for PATH functions one for JSON - its likely the JSON version doesn't have a purpose unless the JSON dynamically changes as a result of the function implementation but its better to create another impl for JSON if in the future JSON can be dynamically changed via functions(?)
...
The fault is in the Parameter object which obviously cached its value and when the outside reference changes its oblivious to that state change due to its internal cached instance of the state. Cache.getCache()... that singleton call inside of JsonContext then grabs an instance of the cached parameter, it would be thread unsafe to simple invalidate the cache because who knows for whom the cache is being invalidated.
Not caching function paths isn't an answer -- the input to a function could itself be another function - meaning the input (parameter) value would never be observed to the wrapping function and things such as take the $.max(3, 4, 5, $.avg(...)) would yield an answer without average being computed.
8 years ago
jochenberger
be1e39e91a
Make LimitingEvaluationListener *static*
8 years ago
Kalle Stenflo
c97c70a33d
Renamed update operation 'convert' to 'map'.
10 years ago
Kalle Stenflo
ebd19526d8
Code cleanup.
10 years ago
Kalle Stenflo
3adc04bd13
Made write features JsonProvider neutral.
10 years ago
Kalle Stenflo
179a818418
Minor cache fixes.
10 years ago
gauravgupta
f25ec6c0cd
fixed the cache key and the unit test (use the same key when fetching
...
and looking up cache) #94
10 years ago
gauravgupta
9bc0f8b213
Added filters to the cache key #94
10 years ago
gauravgupta
eebfd8bbda
Updating the cache on cache miss
10 years ago
gauravgupta
bf33697891
Externalized the cache using CacheProvider spi.
...
Set the CacheProvider in the Configuration:
Configuration
.builder()
.mappingProvider(new <<Implementation of mapping provider>>)
.jsonProvider(new <<Implementation of JsonProvider>>)
.cacheProvider(new <<implementation of CacheProvider>>)
.build();
10 years ago
Tamas Adam
b5c175d04d
Added convert method for path value in-situ conversion.
10 years ago
Tamas Adam
f16ce7c2c6
Added renameKey feature to rename a key value found in a map path to a new key value.
10 years ago
Kalle Stenflo
1735bc7a87
Removed deprecated classes and some minor fixes.
10 years ago
Kalle Stenflo
ca6d7fff66
Preparations for patch support.
10 years ago
Kalle Stenflo
6a88323b25
Preparations for patch support.
10 years ago
Kalle Stenflo
f8209fcc40
Mapping improvements.
11 years ago
Kalle Stenflo
0e997e6260
Overloaded write ops with compiled path.
11 years ago
Kalle Stenflo
4c886174ff
Support write operations.
11 years ago
Kalle Stenflo
73bf52fdd8
Added limit() to JsonReader.
11 years ago
Kalle Stenflo
3cb6d6b1de
Added EvaluationListener support.
11 years ago
Kalle Stenflo
313bf0b79b
Close InputStream in finally block.
11 years ago
Kalle Stenflo
81ed41c70a
Added Apache License header to files.
11 years ago
Kalle Stenflo
a8a50dc05a
Overloaded read operations with 'charset'
11 years ago
Kalle Stenflo
3c2d3ecc70
Changed some method names and added java doc.
11 years ago
Kalle Stenflo
05a74953ed
Renamed Converters to Mappers and added JacksonMappingProvider.
11 years ago
Kalle Stenflo
15f1330987
Reworked conversion handling.
11 years ago
Kalle Stenflo
d0a7d2f564
GsonProvider
11 years ago
Kalle Stenflo
ecde41a1e1
Added Converter to support type conversion.
11 years ago
Kalle Stenflo
8b918b2238
Made Filter more functional. Now it's only referred as Predicate.
11 years ago
Kalle Stenflo
5a4bf10940
Code clean up.
11 years ago
Kalle Stenflo
20511b5cfc
Optimized imports and removed file headers.
11 years ago
Kalle Stenflo
143f6ff25d
Implement the field exists check.
11 years ago
Kalle Stenflo
608c1a77be
Rewrite intenals.
11 years ago
Kalle Stenflo
ed1ebe7b74
Removed apache commons dependencies.
12 years ago
Kalle Stenflo
b15cb3ac8f
API clean up. Reduce static method overloading by fluent API.
12 years ago