Java 类org.springframework.boot.actuate.endpoint.mvc.EndpointHandlerMappingCustomizer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public EndpointHandlerMapping endpointHandlerMapping() {
    Set<? extends MvcEndpoint> endpoints = mvcEndpoints().getEndpoints();
    CorsConfiguration corsConfiguration = getCorsConfiguration(this.corsProperties);
    EndpointHandlerMapping mapping = new EndpointHandlerMapping(endpoints,
            corsConfiguration);
    boolean disabled = this.managementServerProperties.getPort() != null
            && this.managementServerProperties.getPort() == -1;
    mapping.setDisabled(disabled);
    if (!disabled) {
        mapping.setPrefix(this.managementServerProperties.getContextPath());
    }
    if (this.mappingCustomizers != null) {
        for (EndpointHandlerMappingCustomizer customizer : this.mappingCustomizers) {
            customizer.customize(mapping);
        }
    }
    return mapping;
}
项目:spring-boot-concourse    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public EndpointHandlerMapping endpointHandlerMapping() {
    Set<? extends MvcEndpoint> endpoints = mvcEndpoints().getEndpoints();
    CorsConfiguration corsConfiguration = getCorsConfiguration(this.corsProperties);
    EndpointHandlerMapping mapping = new EndpointHandlerMapping(endpoints,
            corsConfiguration);
    boolean disabled = this.managementServerProperties.getPort() != null
            && this.managementServerProperties.getPort() == -1;
    mapping.setDisabled(disabled);
    if (!disabled) {
        mapping.setPrefix(this.managementServerProperties.getContextPath());
    }
    if (this.mappingCustomizers != null) {
        for (EndpointHandlerMappingCustomizer customizer : this.mappingCustomizers) {
            customizer.customize(mapping);
        }
    }
    return mapping;
}
项目:contestparser    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public EndpointHandlerMapping endpointHandlerMapping() {
    Set<? extends MvcEndpoint> endpoints = mvcEndpoints().getEndpoints();
    CorsConfiguration corsConfiguration = getCorsConfiguration(this.corsProperties);
    EndpointHandlerMapping mapping = new EndpointHandlerMapping(endpoints,
            corsConfiguration);
    boolean disabled = this.managementServerProperties.getPort() != null
            && this.managementServerProperties.getPort() == -1;
    mapping.setDisabled(disabled);
    if (!disabled) {
        mapping.setPrefix(this.managementServerProperties.getContextPath());
    }
    if (this.mappingCustomizers != null) {
        for (EndpointHandlerMappingCustomizer customizer : this.mappingCustomizers) {
            customizer.customize(mapping);
        }
    }
    return mapping;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointMvcIntegrationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcAutoConfigurationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:spring-boot-concourse    文件:EndpointMvcIntegrationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:spring-boot-concourse    文件:EndpointWebMvcAutoConfigurationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:contestparser    文件:EndpointMvcIntegrationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:contestparser    文件:EndpointWebMvcAutoConfigurationTests.java   
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return new EndpointHandlerMappingCustomizer() {

        @Override
        public void customize(EndpointHandlerMapping mapping) {
            mapping.setInterceptors(new Object[] { interceptor() });
        }

    };
}
项目:cas-5.1.0    文件:CasSecurityContextConfiguration.java   
@RefreshScope
@Bean
public EndpointHandlerMappingCustomizer mappingCustomizer() {
    return mapping -> mapping.setInterceptors(new Object[]{statusInterceptor()});
}