Class AbstractWebEndpointMappingFactory<E>
- java.lang.Object
-
- io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<E>
-
- All Implemented Interfaces:
WebEndpointMappingFactory<E>
- Direct Known Subclasses:
Jackson2WebEndpointMappingFactory,RegistrationWebEndpointMappingFactory,SmartWebEndpointMappingFactory
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.Loggerlogger
-
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 ofWebEndpointMappingprotected 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:WebEndpointMappingFactoryCreate the instance ofWebEndpointMapping- Specified by:
createin interfaceWebEndpointMappingFactory<E>- Parameters:
endpoint- could be one of these :ServletRegistrationFilterRegistrationorg.springframework.web.servlet.mvc.method.RequestMappingInfoorg.springframework.web.reactive.result.method.RequestMappingInfo
- Returns:
WebEndpointMappingif present
-
doCreate
@Nullable protected abstract WebEndpointMapping<?> doCreate(E endpoint) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-