Class AbstractWebEndpointMappingFactory<E>
- java.lang.Object
-
- io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<E>
-
- All Implemented Interfaces:
WebEndpointMappingFactory<E>
- Direct Known Subclasses:
Jackson2WebEndpointMappingFactory
,RegistrationWebEndpointMappingFactory
public abstract class AbstractWebEndpointMappingFactory<E> extends java.lang.Object implements WebEndpointMappingFactory<E>
Abstract class forWebEndpointMappingFactory
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
WebEndpointMappingFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected io.microsphere.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description AbstractWebEndpointMappingFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Optional<WebEndpointMapping<E>>
create(E endpoint)
Create the instance ofWebEndpointMapping
protected abstract WebEndpointMapping<?>
doCreate(E endpoint)
-
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 final java.util.Optional<WebEndpointMapping<E>> create(E endpoint)
Description copied from interface:WebEndpointMappingFactory
Create the instance ofWebEndpointMapping
- Specified by:
create
in interfaceWebEndpointMappingFactory<E>
- 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
-
doCreate
@Nullable protected abstract WebEndpointMapping<?> doCreate(E endpoint) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-