Commit Graph

3452 Commits (d0de4657d4fa7c0b181a2d6ef05402deee5b5785)

Author SHA1 Message Date
Phillip Webb d0de4657d4 Reduce ConfigurationPropertyName GC pressure
Rewrite `ConfigurationPropertyName` in an attempt to consume less memory
and to reduce GC pressure from `toString()`.

Prior to this commit the `toString()` method would always construct a
new value from the name elements. This is sub-optimal since on on many
occasions the `ConfigurationPropertyName` is created from an already
well-formed String. The updated code now attempts to directly use the
original value for both `toString` and `equals` whenever possible.

Further refinements have also been made to the way that elements are
stored. Rather than a list or objects, we now use arrays that contains
the split points and types. This helps to reduce the amount of memory
required to store the name.

Closes gh-13414
6 years ago
Phillip Webb 0a187675b5 Reduce GC in SpringConfigurationPropertySource
Update `SpringConfigurationPropertySource` so that the
`DelegatingPropertyMapper` accepts a maximum of two values and does
not need to wrap arguments in an array. Also optimize the merge
operation to return a single result directly rather than always using
a new `List`.

Closes gh-14563
6 years ago
Phillip Webb 2bc3d8d01f Use shared BindConverter when possible
Update the `Binder` so that a single shares static `BindConverter` is
used whenever possible.

Closes gh-14562
6 years ago
Phillip Webb 865b7ae47f Reduce object creation when binding
Use static finals and private instances to reduce the number of objects
created when binding from the `ConfigFileApplicationListener`.

Closes gh-13436
6 years ago
Phillip Webb 624cd40598 Reduce GC pressure creating load descriptions
Update `ConfigFileApplicationListener` to build description methods
using a `StringBuilder` and not to use `String.format`.

See gh-13436
6 years ago
Andy Wilkinson 426ff3ada7 Store ObjectProvider rather than their Streams to allow reuse
Generally speaking, methods on configuration classes will only be called once
and, therefore, it should be safe to hold a reference to a Stream for later
one-time usage. However, there are some scenarios in Spring Fu where functional
registration results in an attempt being made to use a Stream more than use.

This commit protects against multiple use by storing the ObjectProvider and
getting a new ordered Stream each time it's needed.

Closes gh-14467
6 years ago
Andy Wilkinson cc6cf880cf Stop using ObjectProvider<List> and ObjectProvider<Collection>
Closes gh-14467
6 years ago
Stephane Nicoll 5323095e44 Fix broken build 6 years ago
Stephane Nicoll 22e77e02b6 Polish "Add support for SAP Hana Database"
Closes gh-14513
6 years ago
Michael cea95c303f Add support for SAP Hana Database
See gh-14513
6 years ago
Stephane Nicoll cd45343d41 Upgrade to Maven Shade Plugin 3.2.0
Closes gh-14546
6 years ago
Stephane Nicoll 90f4da0dac Upgrade to Mongo Driver Reactivestreams 1.9.2
Closes gh-14545
6 years ago
Stephane Nicoll 8b2bf3e0d9 Upgrade to Mongodb 3.8.2
Closes gh-14544
6 years ago
Stephane Nicoll 2a2f1e4023 Upgrade to Jooq 3.11.5
Closes gh-14543
6 years ago
Stephane Nicoll fd8c074371 Upgrade to Kotlin 1.2.70
Closes gh-14542
6 years ago
Stephane Nicoll ad340d253c Upgrade to Influxdb Java 2.13
Closes gh-14541
6 years ago
Stephane Nicoll 705ac1b4f3 Upgrade to Elasticsearch 6.4.1
Closes gh-14540
6 years ago
Stephane Nicoll a176e64ad8 Upgrade to Htmlunit 2.33
Closes gh-14539
6 years ago
Stephane Nicoll 310d6a5c79 Upgrade to Lettuce 5.1.0.RELEASE
Closes gh-14538
6 years ago
Stephane Nicoll 1ce6fdeeb8 Upgrade to Hazelcast 3.10.5
Closes gh-14537
6 years ago
Stephane Nicoll a376ebafd3 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 63d276da58 Upgrade to Neo4j Ogm 3.1.3
Closes gh-14536
6 years ago
Stephane Nicoll 75c893164e Upgrade to Hibernate Validator 6.0.13.Final
Closes gh-14535
6 years ago
Stephane Nicoll 5cac8ac70b Upgrade to Elasticsearch 5.6.12
Closes gh-14534
6 years ago
Stephane Nicoll 0143cb6193 Upgrade to Janino 3.0.10
Closes gh-14533
6 years ago
Stephane Nicoll f49f407b99 Upgrade to Johnzon Jsonb 1.1.10
Closes gh-14532
6 years ago
Stephane Nicoll 59ecfea104 Upgrade to Unboundid Ldapsdk 4.0.8
Closes gh-14531
6 years ago
Stephane Nicoll 380696de58 Upgrade to Jackson 2.9.7
Closes gh-14530
6 years ago
Stephane Nicoll 8652f40781 Allow Quartz property to set the scheduler name
This commit makes sure that "org.quartz.scheduler.instanceName" is
honoured if set. Previously, "spring.quartz.scheduler-name" had a
default value and was always set. As a result, `SchedulerFactoryBean`
did not take the quartz property into account.

Closes gh-14243
6 years ago
Stephane Nicoll 9bca95e499 Upgrade to Reactor Californium RELEASE
Closes gh-14507
6 years ago
Stephane Nicoll 1e7c236589 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 8aece088a4 Upgrade to Spring Web Services 3.0.4.RELEASE
Closes gh-14526
6 years ago
Stephane Nicoll ac2fefb6c3 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 957321492f Merge branch '1.5.x' into 2.0.x 6 years ago
Johnny Lim 521f746151 Polish
Closes gh-14517
6 years ago
Andy Wilkinson efae363974 Register functional rather than reflective bean definitions where possible
Closes gh-14516
6 years ago
Andy Wilkinson 65295e0e14 Merge branch '2.0.x' 6 years ago
Andy Wilkinson bff93a67ce Fix remote DevTools restart when a previously added class is then changed
Previously, if a class was added and then changed, a restart would be triggered
and things would behave as if the class had been deleted. This occurred
because, when looking for additional classes that were not on the original
classpath, only files that had been added were considered. The subsequent
change to the class was noticed as a modified rather than an addition,
resulting in the class being skipped.

This commit updates the resource resolver to only ignore deleted files and
consider both added files and modified files when looking for additional
resources.

Closes gh-14205
6 years ago
Johnny Lim fd97f07209 Use meaningful name for MockServerConfigurer bean
Closes gh-14512
6 years ago
Andy Wilkinson 6164c9e8b6 Start building against Spring Data Lovelace snapshots
See gh-14510
6 years ago
Stephane Nicoll ce60f82998 Merge branch '2.0.x' 6 years ago
Marcel Overdijk 0870f23902 Fix dependency management for Caffeine
Closes gh-14505
6 years ago
yongsungjeon 11864f2bb6 Use constant for produces attribute
Closes gh-14501
6 years ago
Stephane Nicoll 36d22c8541 Merge branch '2.0.x' 6 years ago
DK Lee 01cf52447c Fix typo in WebClient example
Closes gh-14499
6 years ago
Stephane Nicoll 390fc03769 Polish "Add reference to ssh shell spring boot starter"
Closes gh-14496
6 years ago
François Onimus b416a46674 Add reference to ssh shell spring boot starter
See gh-14496
6 years ago
Stephane Nicoll f42891489d Polish key description
Closes gh-14450
6 years ago
Johnny Lim d0a252181b Polish
Closes gh-14449
6 years ago
Brian Clozel 1b7325df52 Switch to Reactor Californium SNAPSHOTs
See gh-14507
6 years ago