Class VoidReturnResolver
java.lang.Object
com.sap.cds.services.impl.handlerregistry.resolver.VoidReturnResolver
- All Implemented Interfaces:
ReturnResolver
Handles handler methods returning
void-
Method Summary
Modifier and TypeMethodDescriptionstatic VoidReturnResolvercreateIfApplicable(Class<?> clazz) True, if the class is applicable for this resolvervoidresolve(Object returnValue, EventContext context) Resolves the return value against the givenEventContext.voidverifyOrThrow(HandlerDescriptor descriptor) Verifies the resolver, based on the finalHandlerDescriptor.
-
Method Details
-
createIfApplicable
True, if the class is applicable for this resolver- Parameters:
clazz- the class- Returns:
- true, if the class is equal to
void
-
resolve
Description copied from interface:ReturnResolverResolves the return value against the givenEventContext. The method should put the return value on theEventContextunder the expected key.- Specified by:
resolvein interfaceReturnResolver- Parameters:
returnValue- the return valuecontext- the context, which is currently being processed
-
verifyOrThrow
Description copied from interface:ReturnResolverVerifies the resolver, based on the finalHandlerDescriptor.- Specified by:
verifyOrThrowin interfaceReturnResolver- Parameters:
descriptor- theHandlerDescriptor
-