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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ManagementContextResolver.java   
/**
 * Return all {@link MvcEndpoints} from the management context.
 * @return {@link MvcEndpoints} from the management context
 */
public MvcEndpoints getMvcEndpoints() {
    try {
        return getApplicationContext().getBean(MvcEndpoints.class);
    }
    catch (Exception ex) {
        return null;
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MvcEndpointPathConfigurationTests.java   
private String getConfiguredPath() {
    if (MvcEndpoint.class.isAssignableFrom(this.endpointClass)) {
        return ((MvcEndpoint) this.context.getBean(this.endpointClass)).getPath();
    }
    for (MvcEndpoint endpoint : this.context.getBean(MvcEndpoints.class)
            .getEndpoints()) {
        if (endpoint instanceof EndpointMvcAdapter && this.endpointClass
                .isInstance(((EndpointMvcAdapter) endpoint).getDelegate())) {
            return ((EndpointMvcAdapter) endpoint).getPath();
        }
    }
    throw new IllegalStateException(
            "Could not get configured path for " + this.endpointClass);
}
项目:spring-boot-concourse    文件:ManagementContextResolver.java   
/**
 * Return all {@link MvcEndpoints} from the management context.
 * @return {@link MvcEndpoints} from the management context
 */
public MvcEndpoints getMvcEndpoints() {
    try {
        return getApplicationContext().getBean(MvcEndpoints.class);
    }
    catch (Exception ex) {
        return null;
    }
}
项目:spring-boot-concourse    文件:MvcEndpointPathConfigurationTests.java   
private String getConfiguredPath() {
    if (MvcEndpoint.class.isAssignableFrom(this.endpointClass)) {
        return ((MvcEndpoint) this.context.getBean(this.endpointClass)).getPath();
    }
    for (MvcEndpoint endpoint : this.context.getBean(MvcEndpoints.class)
            .getEndpoints()) {
        if (endpoint instanceof EndpointMvcAdapter && this.endpointClass
                .isInstance(((EndpointMvcAdapter) endpoint).getDelegate())) {
            return ((EndpointMvcAdapter) endpoint).getPath();
        }
    }
    throw new IllegalStateException(
            "Could not get configured path for " + this.endpointClass);
}
项目:contestparser    文件:ManagementContextResolver.java   
/**
 * Return all {@link MvcEndpoints} from the management context.
 * @return {@link MvcEndpoints} from the management context
 */
public MvcEndpoints getMvcEndpoints() {
    try {
        return getApplicationContext().getBean(MvcEndpoints.class);
    }
    catch (Exception ex) {
        return null;
    }
}
项目:contestparser    文件:EndpointWebMvcChildContextConfiguration.java   
@Autowired
public void handlerMapping(MvcEndpoints endpoints,
        ListableBeanFactory beanFactory, EndpointHandlerMapping mapping) {
    // In a child context we definitely want to see the parent endpoints
    mapping.setDetectHandlerMethodsInAncestorContexts(true);
    postProcessMapping(beanFactory, mapping);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LinksEnhancer.java   
LinksEnhancer(String rootPath, MvcEndpoints endpoints) {
    this.rootPath = rootPath;
    this.endpoints = endpoints;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MvcEndpoints mvcEndpoints() {
    return new MvcEndpoints();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcChildContextConfiguration.java   
@Autowired
public void handlerMapping(MvcEndpoints endpoints,
        ListableBeanFactory beanFactory, EndpointHandlerMapping mapping) {
    // In a child context we definitely want to see the parent endpoints
    mapping.setDetectHandlerMethodsInAncestorContexts(true);
}
项目:spring-boot-concourse    文件:LinksEnhancer.java   
LinksEnhancer(String rootPath, MvcEndpoints endpoints) {
    this.rootPath = rootPath;
    this.endpoints = endpoints;
}
项目:spring-boot-concourse    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MvcEndpoints mvcEndpoints() {
    return new MvcEndpoints();
}
项目:spring-boot-concourse    文件:EndpointWebMvcChildContextConfiguration.java   
@Autowired
public void handlerMapping(MvcEndpoints endpoints,
        ListableBeanFactory beanFactory, EndpointHandlerMapping mapping) {
    // In a child context we definitely want to see the parent endpoints
    mapping.setDetectHandlerMethodsInAncestorContexts(true);
}
项目:contestparser    文件:LinksEnhancer.java   
LinksEnhancer(String rootPath, MvcEndpoints endpoints) {
    this.rootPath = rootPath;
    this.endpoints = endpoints;
}
项目:contestparser    文件:EndpointWebMvcManagementContextConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MvcEndpoints mvcEndpoints() {
    return new MvcEndpoints();
}