Class WebMvcServiceRegistryAutoConfiguration
java.lang.Object
io.microsphere.spring.cloud.client.service.registry.autoconfigure.WebServiceRegistryAutoConfiguration
io.microsphere.spring.cloud.client.service.registry.autoconfigure.WebMvcServiceRegistryAutoConfiguration
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<io.microsphere.spring.web.event.WebEndpointMappingsReadyEvent>
@ConditionalOnWebApplication(type=SERVLET)
public class WebMvcServiceRegistryAutoConfiguration
extends WebServiceRegistryAutoConfiguration
Auto-Configuration class for
ServiceRegistry on the Spring WebMVC Application- Since:
- 1.0.0
- Author:
- Mercy
-
Field Summary
Fields inherited from class io.microsphere.spring.cloud.client.service.registry.autoconfigure.WebServiceRegistryAutoConfiguration
actuatorBasePath, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the context path of the Spring Web Applicationprotected booleanisExcludedMapping(io.microsphere.spring.web.metadata.WebEndpointMapping mapping, String[] patterns) Is excluded mappingMethods inherited from class io.microsphere.spring.cloud.client.service.registry.autoconfigure.WebServiceRegistryAutoConfiguration
isActuatorWebEndpointMapping, onApplicationEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
WebMvcServiceRegistryAutoConfiguration
public WebMvcServiceRegistryAutoConfiguration()
-
-
Method Details
-
getContextPath
Description copied from class:WebServiceRegistryAutoConfigurationGet the context path of the Spring Web Application- Specified by:
getContextPathin classWebServiceRegistryAutoConfiguration- Returns:
- context path
-
isExcludedMapping
protected boolean isExcludedMapping(io.microsphere.spring.web.metadata.WebEndpointMapping mapping, String[] patterns) Description copied from class:WebServiceRegistryAutoConfigurationIs excluded mapping- Specified by:
isExcludedMappingin classWebServiceRegistryAutoConfiguration- Parameters:
mapping-WebEndpointMappingpatterns- patterns- Returns:
- if excluded mapping, return
true, orfalse
-