Interface ArgumentResolver
- All Known Implementing Classes:
EventContextArgumentResolver,PojoArgumentResolver
public interface ArgumentResolver
Describes how to resolve a certain argument value on a given
EventContext-
Method Summary
Modifier and TypeMethodDescriptiondefault String[]default String[]resolve(EventContext context) Finds an argument value on the givenEventContextvoidverifyOrThrow(HandlerDescriptor descriptor) Verifies the resolver, based on the finalHandlerDescriptor.
-
Method Details
-
resolve
Finds an argument value on the givenEventContext- Parameters:
context- theEventContextcurrently processed- Returns:
- the determined argument value
-
verifyOrThrow
Verifies the resolver, based on the finalHandlerDescriptor.- Parameters:
descriptor- theHandlerDescriptor- Throws:
IllegalArgumentException- if the verification failed
-
indicateEvents
- Returns:
- an array of indicated events, that can be used if the handler does not specify events in their annotation
-
indicateEntities
- Returns:
- an array of indicated entities, that can be used if the handler does not specify entities in their annotation
-