org.springframework.boot.actuate.endpoint.web.PathMapper Java Examples
The following examples show how to use
org.springframework.boot.actuate.endpoint.web.PathMapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractEndpointTests.java From quickfixj-spring-boot-starter with Apache License 2.0 | 6 votes |
private void load(Function<EndpointId, Long> timeToLive, PathMapper endpointPathMapper, Class<?> configuration, Consumer<WebEndpointDiscoverer> consumer) { try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(configuration)) { ConversionServiceParameterValueMapper parameterMapper = new ConversionServiceParameterValueMapper(DefaultConversionService.getSharedInstance()); EndpointMediaTypes mediaTypes = new EndpointMediaTypes( Collections.singletonList("application/json"), Collections.singletonList("application/json")); WebEndpointDiscoverer discoverer = new WebEndpointDiscoverer(context, parameterMapper, mediaTypes, Collections.singletonList(endpointPathMapper), Collections.singleton(new CachingOperationInvokerAdvisor(timeToLive)), Collections.emptyList()); consumer.accept(discoverer); } }
Example #2
Source File: ArmeriaSpringActuatorAutoConfiguration.java From armeria with Apache License 2.0 | 6 votes |
@Bean @ConditionalOnMissingBean(WebEndpointsSupplier.class) WebEndpointDiscoverer webEndpointDiscoverer( ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, ObjectProvider<PathMapper> endpointPathMappers, ObjectProvider<OperationInvokerAdvisor> invokerAdvisors, ObjectProvider<EndpointFilter<ExposableWebEndpoint>> filters) { return new WebEndpointDiscoverer(applicationContext, parameterValueMapper, endpointMediaTypes, endpointPathMappers.orderedStream().collect(toImmutableList()), invokerAdvisors.orderedStream().collect(toImmutableList()), filters.orderedStream().collect(toImmutableList())); }