This commit is contained in:
Phillip Webb
2014-05-20 13:13:39 +01:00
parent e40acd81e4
commit 8bcda1bcbe
91 changed files with 477 additions and 438 deletions

View File

@@ -61,7 +61,7 @@ import org.springframework.web.servlet.handler.AbstractHandlerMethodMapping;
/**
* {@link EnableAutoConfiguration Auto-configuration} for common management
* {@link Endpoint}s.
*
*
* @author Dave Syer
* @author Phillip Webb
* @author Greg Turnquist

View File

@@ -47,15 +47,15 @@ import org.springframework.data.redis.connection.RedisConnectionFactory;
/**
* {@link EnableAutoConfiguration Auto-configuration} for {@link HealthIndicator}s.
*
*
* @author Christian Dupuis
* @since 1.1.0
*/
@Configuration
@AutoConfigureBefore({ EndpointAutoConfiguration.class })
@AutoConfigureAfter({ DataSourceAutoConfiguration.class, MongoAutoConfiguration.class,
MongoDataAutoConfiguration.class, RedisAutoConfiguration.class,
RabbitAutoConfiguration.class })
MongoDataAutoConfiguration.class, RedisAutoConfiguration.class,
RabbitAutoConfiguration.class })
public class HealthIndicatorAutoConfiguration {
@Bean

View File

@@ -26,7 +26,7 @@ import org.springframework.util.Assert;
/**
* {@link Endpoint} to expose application health.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

View File

@@ -33,7 +33,7 @@ import org.springframework.util.StringUtils;
/**
* Default implementation of {@link PublicMetrics} that exposes all metrics from a
* {@link MetricReader} along with memory information.
*
*
* @author Dave Syer
* @author Christian Dupuis
*/

View File

@@ -35,7 +35,8 @@ import org.springframework.util.StringUtils;
*
* @author Dave Syer
*/
public class SimpleDataSourceHealthIndicator implements HealthIndicator<Map<String, Object>> {
public class SimpleDataSourceHealthIndicator implements
HealthIndicator<Map<String, Object>> {
private DataSource dataSource;
@@ -61,7 +62,8 @@ public class SimpleDataSourceHealthIndicator implements HealthIndicator<Map<Stri
}
/**
* Create a new {@link SimpleDataSourceHealthIndicator} using the specified datasource.
* Create a new {@link SimpleDataSourceHealthIndicator} using the specified
* datasource.
* @param dataSource the data source
*/
public SimpleDataSourceHealthIndicator(DataSource dataSource) {

View File

@@ -58,7 +58,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for {@link CrshAutoConfiguration}.
*
*
* @author Christian Dupuis
*/
@SuppressWarnings({ "rawtypes", "unchecked" })

View File

@@ -59,7 +59,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link EndpointWebMvcAutoConfiguration}.
*
*
* @author Phillip Webb
* @author Greg Turnquist
*/
@@ -84,8 +84,7 @@ public class EndpointWebMvcAutoConfigurationTests {
@Test
public void onSamePort() throws Exception {
this.applicationContext.register(RootConfig.class, BaseConfiguration.class,
ServerPortConfig.class,
EndpointWebMvcAutoConfiguration.class);
ServerPortConfig.class, EndpointWebMvcAutoConfiguration.class);
this.applicationContext.refresh();
assertContent("/controller", ports.get().server, "controlleroutput");
assertContent("/endpoint", ports.get().server, "endpointoutput");

View File

@@ -39,7 +39,7 @@ import static org.junit.Assert.assertEquals;
/**
* Tests for {@link HealthIndicatorAutoConfiguration}.
*
*
* @author Christian Dupuis
*/
public class HealthIndicatorAutoConfigurationTests {

View File

@@ -30,7 +30,7 @@ import static org.junit.Assert.assertThat;
/**
* Tests for {@link HealthEndpoint}.
*
*
* @author Phillip Webb
*/
public class HealthEndpointTests extends AbstractEndpointTests<HealthEndpoint> {

View File

@@ -122,7 +122,7 @@ public class RedisServer implements TestRule {
/**
* Perform cleanup of the {@link #resource} field, which is guaranteed to be non null.
*
*
* @throws Exception any exception thrown by this method will be logged and swallowed
*/
protected void cleanupResource() throws Exception {

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertEquals;
/**
* Tests for {@link WebRequestTraceFilter}.
*
*
* @author Dave Syer
*/
public class WebRequestTraceFilterTests {