public class ConcludesBatchParameterResolverFactory extends AbstractAnnotatedParameterResolverFactory<ConcludesBatch,Boolean> implements ParameterResolver<Boolean>
ConcludesBatch
. If the event
is processed in the context of a BatchingUnitOfWork
and is the last of the batch the resolver injects a
value of true
. If the event is processed in another unit of work it is always assumed to be the last of a
batch.Constructor and Description |
---|
ConcludesBatchParameterResolverFactory()
Initialize a ConcludesBatchParameterResolverFactory.
|
Modifier and Type | Method and Description |
---|---|
protected ParameterResolver<Boolean> |
getResolver() |
boolean |
matches(Message<?> message)
Indicates whether this resolver is capable of providing a value for the given
message . |
Boolean |
resolveParameterValue(Message<?> message)
Resolves the parameter value to use for the given
message , or null if no suitable
parameter value can be resolved. |
createInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportedPayloadType
public ConcludesBatchParameterResolverFactory()
protected ParameterResolver<Boolean> getResolver()
getResolver
in class AbstractAnnotatedParameterResolverFactory<ConcludesBatch,Boolean>
public Boolean resolveParameterValue(Message<?> message)
ParameterResolver
message
, or null
if no suitable
parameter value can be resolved.resolveParameterValue
in interface ParameterResolver<Boolean>
message
- The message to resolve the value frompublic boolean matches(Message<?> message)
ParameterResolver
message
.matches
in interface ParameterResolver<Boolean>
message
- The message to evaluatetrue
if this resolver can provide a value for the message, otherwise false
Copyright © 2010–2024. All rights reserved.