Class SmartWebEndpointMappingFactory
- java.lang.Object
-
- io.microsphere.spring.web.metadata.SmartWebEndpointMappingFactory
-
- All Implemented Interfaces:
WebEndpointMappingFactory<java.lang.Object>
public class SmartWebEndpointMappingFactory extends java.lang.Object implements WebEndpointMappingFactory<java.lang.Object>
The smartWebEndpointMappingFactory
class based on Spring'sWebEndpointMappingFactory
SPI- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Constructor Description SmartWebEndpointMappingFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<WebEndpointMapping<java.lang.Object>>
create(java.lang.Object endpoint)
Create the instance ofWebEndpointMapping
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.spring.web.metadata.WebEndpointMappingFactory
getSourceType, supports
-
-
-
-
Method Detail
-
create
public java.util.Optional<WebEndpointMapping<java.lang.Object>> create(java.lang.Object endpoint)
Description copied from interface:WebEndpointMappingFactory
Create the instance ofWebEndpointMapping
- Specified by:
create
in interfaceWebEndpointMappingFactory<java.lang.Object>
- Parameters:
endpoint
- could be one of these :ServletRegistration
FilterRegistration
org.springframework.web.servlet.mvc.method.RequestMappingInfo
org.springframework.web.reactive.result.method.RequestMappingInfo
- Returns:
WebEndpointMapping
if present
-
-