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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint("docs")
@ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html")
public DocsMvcEndpoint docsMvcEndpoint(
        ManagementServletContext managementServletContext) {
    return new DocsMvcEndpoint(managementServletContext);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnEnabledEndpoint("actuator")
@Bean
public HalJsonMvcEndpoint halJsonMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new HalBrowserMvcEndpoint(managementServletContext);
    }
    return new HalJsonMvcEndpoint(managementServletContext);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcAutoConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:spring-boot-concourse    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:spring-boot-concourse    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnEnabledEndpoint("actuator")
@Bean
public HalJsonMvcEndpoint halJsonMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new HalBrowserMvcEndpoint(managementServletContext);
    }
    return new HalJsonMvcEndpoint(managementServletContext);
}
项目:spring-boot-concourse    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
@ConditionalOnEnabledEndpoint("docs")
@ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html")
public DocsMvcEndpoint docsMvcEndpoint(
        ManagementServletContext managementServletContext) {
    return new DocsMvcEndpoint(managementServletContext);
}
项目:spring-boot-concourse    文件:EndpointWebMvcAutoConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:contestparser    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:contestparser    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnProperty(prefix = "endpoints.actuator", name = "enabled", matchIfMissing = true)
@Bean
public ActuatorHalJsonEndpoint actuatorMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (ActuatorHalBrowserEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new ActuatorHalBrowserEndpoint(managementServletContext);
    }
    return new ActuatorHalJsonEndpoint(managementServletContext);
}
项目:contestparser    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = "endpoints.docs", name = "enabled", matchIfMissing = true)
@ConditionalOnResource(resources = "classpath:/META-INF/resources/spring-boot-actuator/docs/index.html")
public ActuatorDocsEndpoint actuatorDocsEndpoint(
        ManagementServletContext managementServletContext) {
    return new ActuatorDocsEndpoint(managementServletContext);
}
项目:contestparser    文件:EndpointWebMvcAutoConfiguration.java   
@Bean
public ManagementServletContext managementServletContext(
        final ManagementServerProperties properties) {
    return new ManagementServletContext() {

        @Override
        public String getContextPath() {
            return properties.getContextPath();
        }

    };
}
项目:ARCLib    文件:AdminConsole.java   
public AdminConsole(ManagementServletContext managementServletContext) {
    super("console", "/console", true);
    this.managementServletContext = managementServletContext;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MvcEndpointPathConfigurationTests.java   
@Bean
public DocsMvcEndpoint docs(ManagementServletContext managementServletContext) {
    return new DocsMvcEndpoint(managementServletContext);
}
项目:spring-boot-concourse    文件:MvcEndpointPathConfigurationTests.java   
@Bean
public DocsMvcEndpoint docs(ManagementServletContext managementServletContext) {
    return new DocsMvcEndpoint(managementServletContext);
}