Commit Graph

20592 Commits (8325fce53e828f606fe690d7002fa26665d59e57)
 

Author SHA1 Message Date
Brian Clozel 8325fce53e Fix formatting 6 years ago
Brian Clozel 6586bae889 Guard Endpoint bean declarations with ConditionalOnExposedEndpoint
This commit adds the newly introduced `@ConditionalOnExposedEndpoint`
conditional annotation to all auto-configured `Endpoint` in Actuator.

With that change, `EndPoint` instances and related infrastructure will
only be created when they are meant to be exposed and used. This will
save CPU and memory resources when Actuator is present.

Closes gh-16093
6 years ago
Brian Clozel 4ffbe6c9e8 Add @ConditionalOnExposedEndpoint condition
Prior to this commit, Actuator `Endpoint` instantiations would be
guarded by `@ConditionalOnEnabledEnpoint` condition annotations. This
feature saves resources as disabled endpoints aren't unnecessarily
instantiated.

By default, only `"health"` and `"info"` endpoints are exposed over the
web and all endpoints are exposed over JMX.

As of gh-16090, JMX is now disabled by default. This is an opportunity
to avoid instantiating endpoints if they won't be exposed at all, which
is more likely due to the exposure defaults.

This commit adds a new `@ConditionalOnExposedEndpoint` conditional
annotation that checks the `Environment` for configuration properties
under `"management.endpoints.web.exposure.*"` and
`"management.endpoints.jmx.exposure.*"`. In the case of JMX, an
additional check is perfomed, checking that JMX is enabled first.
The rules implemented in the condition itself are following the ones
described in `ExposeExcludePropertyEndpointFilter`.

See gh-16093
6 years ago
Andy Wilkinson b8dff5fe17 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 9d06d22b99 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson affdbeef41 Polish 6 years ago
Andy Wilkinson e1a7f1e085 Upgrade to Cassandra Driver 3.7.1
Closes gh-16163
6 years ago
Andy Wilkinson c4756e9057 Merge branch '2.1.x' 6 years ago
Andy Wilkinson f46894dfd3 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson 17a1b2822c Isolate LoggerContext state to each test
Closes gh-16162
6 years ago
Andy Wilkinson 3f3966adb0 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 9963ed1249 Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson 83216c34e5 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 3fdf2818b3 Remove reliance on side-effects in LogbackLoggingSystemTests
Closes gh-16160
6 years ago
Andy Wilkinson 7c58d72734 Upgrade to Mongo Driver Reactivestreams 1.11.0
Closes gh-16159
6 years ago
Andy Wilkinson 36cbd00853 Disable AssertJ's bare-named property accessor discovery
AssertJ includes a change in 3.12 that means that, by default, it now incorrectly
identifies some of the builder methods on CacheControl as accessor methods for its fields.
This commit restores the behaviour of 3.11 so that a method is only considered to be a
property accessor if a matches the Java bean naming conventions.

Closes gh-16145
6 years ago
Andy Wilkinson e667911f91 Merge branch '2.1.x' 6 years ago
Andy Wilkinson 80f2e2260e Merge branch '2.0.x' into 2.1.x 6 years ago
Andy Wilkinson e56580ddc6 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 2916421188 Revert "Upgrade to Jetty 9.4.15.v20190215"
This reverts commit 53e7c5cde1.

See gh-16118
6 years ago
Andy Wilkinson 87d696d697 Align with breaking API change in AssertJ 3.12
Closes gh-16145
6 years ago
Andy Wilkinson c2e9f98655 Upgrade to Spring Plugin 2.0.0.M1
Closes gh-15940
6 years ago
Andy Wilkinson 7c568bb277 Upgrade to Spring HATEOAS 1.0.0.M1
Closes gh-15939
6 years ago
Andy Wilkinson c6811d6427 Upgrade to Maven Javadoc Plugin 3.1.0
Closes gh-16157
6 years ago
Andy Wilkinson 12c1271bcb Upgrade to Maven Invoker Plugin 3.2.0
Closes gh-16156
6 years ago
Andy Wilkinson 970f9abc9c Upgrade to Snakeyaml 1.24
Closes gh-16155
6 years ago
Andy Wilkinson 85f42df77f Upgrade to Webjars Locator Core 0.37
Closes gh-16154
6 years ago
Andy Wilkinson 3635885058 Upgrade to Selenium Htmlunit 2.34.0
Closes gh-16153
6 years ago
Andy Wilkinson 44bc3b0f7a Upgrade to Mongodb 3.10.1
Closes gh-16152
6 years ago
Andy Wilkinson cd68579851 Upgrade to Mockito 2.25.0
Closes gh-16151
6 years ago
Andy Wilkinson 22ef0285bd Upgrade to Mariadb 2.4.0
Closes gh-16150
6 years ago
Andy Wilkinson 12e9160fff Upgrade to Junit Jupiter 5.4.0
Closes gh-16149
6 years ago
Andy Wilkinson d4d0db017e Upgrade to Influxdb Java 2.15
Closes gh-16148
6 years ago
Andy Wilkinson 614931755c Upgrade to Elasticsearch 6.6.1
Closes gh-16147
6 years ago
Andy Wilkinson 52a934faae Upgrade to Ehcache3 3.7.0
Closes gh-16146
6 years ago
Andy Wilkinson ad8f2fb409 Upgrade to Assertj 3.12.1
Closes gh-16145
6 years ago
Andy Wilkinson 419a1bd5b3 Upgrade to Kafka 2.1.1
Closes gh-16144
6 years ago
Andy Wilkinson 708551e9d5 Upgrade to Commons Dbcp2 2.6.0
Closes gh-16143
6 years ago
Andy Wilkinson a491fd3d05 Upgrade to Htmlunit 2.34.1
Closes gh-16142
6 years ago
Andy Wilkinson 4fff84c65c Upgrade to Rest Assured 3.3.0
Closes gh-16141
6 years ago
Andy Wilkinson 10c90a8845 Upgrade to Rxjava2 2.2.7
Closes gh-16140
6 years ago
Andy Wilkinson d8e94f2b6e Upgrade to Commons Codec 1.12
Closes gh-16139
6 years ago
Andy Wilkinson 35a2dc0133 Upgrade to Hikaricp 3.3.1
Closes gh-16138
6 years ago
Andy Wilkinson 2609e27f5f Upgrade to Rabbit Amqp Client 5.6.0
Closes gh-16137
6 years ago
Andy Wilkinson 236cae5727 Upgrade to Hazelcast Hibernate5 1.3.2
Closes gh-16136
6 years ago
Andy Wilkinson cd7eed92a9 Upgrade to Caffeine 2.7.0
Closes gh-16135
6 years ago
Andy Wilkinson eaf055382b Merge branch '2.1.x' 6 years ago
Andy Wilkinson a09713ee30 Upgrade to Infinispan 9.4.8.Final
Closes gh-16134
6 years ago
Andy Wilkinson de042114af Upgrade to Jetty Reactive Httpclient 1.0.3
Closes gh-16133
6 years ago
Andy Wilkinson c54ac68afa Upgrade to Undertow 2.0.19.Final
Closes gh-16132
6 years ago